什么是这些进口angular2的目的是什么? [英] what is the purpose of these angular2 imports?
本文介绍了什么是这些进口angular2的目的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在angular2一个新手,想知道下面我们做进口我们angular2应用程序的目的。
I am a newbie in angular2 and want to know the purpose of following imports we do in our angular2 app.
<script src="node_modules/es6-shim/es6-shim.min.js"></script>
<script src="node_modules/systemjs/dist/system-polyfills.js"></script>
<script src="node_modules/angular2/bundles/angular2-polyfills.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<script src="node_modules/rxjs/bundles/Rx.js"></script>
<script src="node_modules/angular2/bundles/angular2.dev.js"></script>
<script src="node_modules/angular2/bundles/http.dev.js"></script>
所以我对这些进口的问题是:
so my questions regarding these imports are:
- 什么是这些进口?
- 没有这些进口梅特的顺序?
- 还有没有其他有用的进口我们必须认识? 的
先谢谢了。
推荐答案
下面是关于您在您的脚本元素指定哪些细节:
Here are the details about what you specified in your script elements:
- 的两个第一档是没有必要的,如果你使用的打字稿,并configuted ES5输出。
- angular2-polyfills.js - 包含ZoneJS(触发变化检测 - 看<一个href=\"http://stackoverflow.com/questions/34569094/what-is-the-angular2-equivalent-to-an-angularjs-watch/34570122#34570122\">What是Angular2相当于一个AngularJS $看?),反映的元数据(设置的元数据从装饰物体)
- system.src.js - SystemJS,一个管理模块的库。总之,当您使用的进口和出口打字稿相应的编译code依赖于它。
- Rx.js - RxJS,提供无功编程概念的实施库。总之,它提供了可观测量和它们的运营商的implementArion。 EventEmitters,HTTP靠这个。
- angular2.dev.js - Angular2核心软件包
- http.dev.js - HTTP支持Angular2的
- The two first files aren't necessary if you use TypeScript and have configuted ES5 output.
- angular2-polyfills.js - Contains ZoneJS (to trigger change detection - see What is the Angular2 equivalent to an AngularJS $watch?) and reflect-metadata (to set metadata on objects from decorators)
- system.src.js - SystemJS, the library that manages modules. In short when you use import and export in TypeScript the corresponding compiled code relies on it.
- Rx.js - RxJS, a library that provides an implementation of Reactive Programming concepts. In short, it provides an implementArion of observables and their operators. EventEmitters, HTTP rely on this.
- angular2.dev.js - Angular2 core bundle
- http.dev.js - HTTP support of Angular2
这篇关于什么是这些进口angular2的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文