What is the use of polyfills.ts file in Angular

前端 未结 2 1377
礼貌的吻别
礼貌的吻别 2021-02-04 23:38

polyfills.ts file is auto generated while creating an Angular application using Angular Cli. Can anyone explain me what is the use of polyfills.ts file in Angular application.

2条回答
  •  轮回少年
    2021-02-05 00:21

    Basically polyfills compatible for different browsers especially IE old versions IE8, IE9 and IE10. Angular has new features which written in ES6 and typescript, so polyfills helps to compatible with different browsers.

提交回复
热议问题