数组 – Angular – umd.js vs rx.umd.js

前端之家收集整理的这篇文章主要介绍了数组 – Angular – umd.js vs rx.umd.js前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在Angular教程之后,我们可以看到:

<script src="node_modules/angular2/bundles/angular2.umd.js"></script>@H_404_12@ 
 

https://angular.io/docs/js/latest/guide/forms.html使用的同时,

<script src="node_modules/rxjs/bundles/Rx.umd.js"></script>@H_404_12@ 
 

用于https://angular.io/docs/js/latest/quickstart.html

有人可以解释或指向一个文档,解释何时调用哪个JS文件.提前致谢

解决方法

UMD捆绑包适用于使用ES5编写的用户以及对ngUpgrade感兴趣的用户.

有一个名为overview.md的文件位于https://code.angularjs.org/2.0.0-beta.0/,您可以查看其目的是什么.此文件尚未成为http://angular.io的一部分,但最有可能包含在未来.

引用该文档的一部分

ES5 and ngUpgrade users

ES5 users and AngularJS 1.x users interested in the ngUpgrade path can take advantage of the bundles in the 07002.
Those are coarse-grained bundles that combine many barrels in one final file.

Warning: bundles in the UMD format are not “additive”. A single application should use only one bundle from the above list.

在你的情况下,你需要Rx.umd.js(或者你想要的缩小版本)和一个Angular2 UMD包.

在文档本身中,有一个包含每个内容的列表/表.

更新

概述文件虽然在网站中尚未提供,但可以在存储库中找到.检查overview.md.

猜你在找的Angularjs相关文章