我们想在我们的应用程序中使用https://github.com/auth0/angular2-jwt.现在它说,Internet Explorer 11支持需要URL填充.需要帮助或步骤才能在Angular App中添加此polyfill.
如果您还没有全局安装计算机中的Angular CLI,请确保:
npm install -g @angular/cli
Run Code Online (Sandbox Code Playgroud)cd到您的项目根目录(带有package.jsonin 的目录)
安装URL polyfill(--save将polyfill添加到您的package.json文件中):
npm install url-polyfill --save
Run Code Online (Sandbox Code Playgroud)打开Angular polyfills.ts文件,在" /** IE10 and IE11 requries..." 行之后添加以下行:
import 'url-polyfill';
Run Code Online (Sandbox Code Playgroud)| 归档时间: |
|
| 查看次数: |
3390 次 |
| 最近记录: |