angular2系统绑定器无法工作

angular2系统绑定器无法工作,angular,gulp,systemjs,Angular,Gulp,Systemjs,我正在向老师学习英语 因为我想用angular吞下systemjs包,所以有点不对劲 Angular2与Soin的比值为2.0.0-rc.5 我很确定我遗漏了它的一些基本方面,但我在代码中找不到它 顺便说一句:如果我不想吞咽捆绑任务,请更改html代码: <script src="app/bundle.js"></script> 这里是主要的源代码 HTML: 角度2快速入门 加载。。。 移动此行: <script src="app/bundle.js">

我正在向老师学习英语

因为我想用angular吞下systemjs包,所以有点不对劲

Angular2与Soin的比值为2.0.0-rc.5

我很确定我遗漏了它的一些基本方面,但我在代码中找不到它

顺便说一句:如果我不想吞咽捆绑任务,请更改html代码:

<script src="app/bundle.js"></script>
这里是主要的源代码

HTML:


角度2快速入门
加载。。。
移动此行:

<script src="app/bundle.js"></script>

在此之后:

<my-app>Loading...</my-app>
正在加载。。。

看看这是否有效。

您不需要在脚本标记中引用bundle.js。您只需要
System.import
。我通常直接指向我的包文件,如下所示:

System.import('app/bundle.js').catch(function(err){ console.error(err); });

我懂了。谢谢。巴拉特的回答对我来说也是正确的。
<my-app>Loading...</my-app>
System.import('app/bundle.js').catch(function(err){ console.error(err); });