应该在index.html中引用Angular 2 js包还是使用System.js从文件夹动态加载?

时间:2016-09-29 04:58:30

标签: angular

js文件应该如何在角度2中被引用。它们应该像index 1. *一样添加到index.html,还是使用System.js从文件夹动态加载?

1 个答案:

答案 0 :(得分:0)

您无需在index.html中包含它。它应该由System.js加载:https://angular.io/guide/quickstart