Angular 2 / 4 / 5 not working in IE11

后端 未结 22 2273
野的像风
野的像风 2020-11-22 11:07

I am trying to figure out why my angular 2 app is stuck on showing Loading... when running in IE 11.

Following someone\'s suggestion, I\'ve tried this plunker, poste

22条回答
  •  -上瘾入骨i
    2020-11-22 11:58

    1. Uncomment IE section in the src/polyfill.js,

      /** IE10 and IE11 requires the following for NgClass support on SVG elements*/

      import 'classlist.js';

    2. If any build error for missing package then,

      npm install classlist.js --save-exact

    3. Make sure to include below line to set the default IE document mode. Other wise it will open in version 7

     
    

提交回复
热议问题