简体   繁体   English

ES6的必要导入,以便在IE11上运行Angular 4应用程序

[英]Necessary imports for ES6 to run Angular 4 application on IE11

I'm creating an application using Angular4, I'd like to correspond to IE11. 我正在使用Angular4创建一个应用程序,我想对应于IE11。 polyfills.ts is designated like ex), but is other designation necessary? polyfills.ts的名称类似于ex),但是否需要其他名称?

ex) EX)

import "core-js/es6/symbol";
import "core-js/es6/object";
import "core-js/es6/function";
import "core-js/es6/parse-int";
import "core-js/es6/parse-float";
import "core-js/es6/number";
import "core-js/es6/math";
import "core-js/es6/string";
import "core-js/es6/date";
import "core-js/es6/array";
import "core-js/es6/regexp";
import "core-js/es6/map";
import "core-js/es6/set";
import "core-js/es6/reflect";

import "core-js/es7/reflect";
import "zone.js/dist/zone";

I referred to Browser Support ( https://angular.io/docs/ts/latest/guide/browser-support.html ), but I do not know what is necessary to import out of ES6 because it is written only with ES6. 我提到了浏览器支持( https://angular.io/docs/ts/latest/guide/browser-support.html ),但是我不知道从ES6导入什么是必需的,因为它仅由ES6编写。

Why don't u use the Angular CLI to set up your project? 您为什么不使用Angular CLI设置项目? This way everything is set up correctly and after that you're free to do what ever you want. 这样,一切都可以正确设置,然后您就可以随意做任何想要的事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM