【发布时间】:2016-12-23 10:08:49
【问题描述】:
我有一个正在运行的应用程序,并且在我的一个组件中我想要一个按钮,单击时我想从另一个文件加载另一个模块并引导它。它正在工作,但我得到例外:预计不会在 Angular Zone,但它是!我不知道为什么以及如何解决它。 这是我的代码:
index.html:
<app1></app1>
<app2></app2>
点击后我有这个:
return System.import('../secondapp.ts').then((comp: any) => {
platformBrowserDynamic().bootstrapModule(comp.default);
});
【问题讨论】:
标签: angular bootstrapping