简单的问题 - 如何在单个HTML文件中安装Angular2 - 不使用Bower,不使用NPM,不使用NuGet,简单脚本文件等?
编辑:
从Dieuhd's
回答我能够使用以下脚本获得Angular 2.0 -
<script src="https://npmcdn.com/core-js/client/shim.min.js"></script>
<script src="https://npmcdn.com/zone.js@0.6.12?main=browser"></script>
<script src="https://npmcdn.com/reflect-metadata@0.1.3"></script>
<script src="https://npmcdn.com/rxjs@5.0.0-beta.6/bundles/Rx.umd.js"></script>
<script src="https://npmcdn.com/@angular/core/bundles/core.umd.js"></script>
<script src="https://npmcdn.com/@angular/common/bundles/common.umd.js"></script>
<script src="https://npmcdn.com/@angular/compiler/bundles/compiler.umd.js"></script>
<script src="https://npmcdn.com/@angular/platform-browser/bundles/platform-browser.umd.js"></script>
<script src="https://npmcdn.com/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js"></script>
答案 0 :(得分:0)
您可以在angular.io
上引用示例https://angular.io/resources/live-examples/quickstart/js/plnkr.html