Angular Application is not working in IE11?

If your angular application is not working in IE11, then the following simple steps can be used to make it work.

  1. Install the following packages using npm
    1. npm install –save classlist.js
    2. npm install –save web-animations-js
  2. Go into polyfills.ts file and uncomment the following lines
    1. import ‘classlist.js’;
    2. import ‘web-animations-js’;
  3. Go into tsconfig.ts file and change the ‘target’ attribute to ‘es5’
  4. Go into index.html file and add the following meta tag in the head tag
    1. <meta http-equiv=”X-UA-Compatible” content=”IE=edge” />

That’s all, I hope it will help.

Leave a Comment