为什么文字没有以角度显示?

时间:2016-01-14 04:12:59

标签: angular angular2-routing angular2-template angular2-directives

我正在尝试以角度2显示组件文本。但它不显示。你能不能告诉我我做错了什么? 这是我的代码

http://plnkr.co/edit/PrWxwf3wT5COVxRwIpqX?p=preview

../../

1 个答案:

答案 0 :(得分:1)

由于您没有文件夹(包),因此可以明确指定扩展名。

  System.import('boot.tp')
        .then(null, console.error.bind(console));

   import { AppComponent } from './script.tp'