通过html-Head中的System.import加载Angular CLI生成的应用程序

时间:2017-05-02 10:52:16

标签: angular angular-cli

我遇到类似的问题(访问没有app-root的多个组件):

https://www.mediacurrent.com/blog/building-wundergroundcom-drupal-angular-2-challenge-1-how-bootstrap

但是我找不到以这种方式加载CLI生成的应用程序的方法:

<head>
...
 <script src="https://code.angularjs.org/tools/system.js"></script>
...
 <script>
  System.import('app')
  .catch(console.error.bind(console));
 </script>
</head>

<body>
 <comp1>
   loading...
 </comp1>
 <div>
   Static content rendered server side.
 </div>
 <comp2>
  loading...
 </comp2>
</body>

我不知道如何访问系统,如果我的CLI管理项目甚至可能,因为我无法访问更深层次的配置。有人可以帮忙吗?谢谢:))

0 个答案:

没有答案