在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@
解决方法
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.