我正在尝试以角度2显示组件文本。但它不显示。你能不能告诉我我做错了什么? 这是我的代码
http://plnkr.co/edit/PrWxwf3wT5COVxRwIpqX?p=preview
../../
答案 0 :(得分:1)
由于您没有文件夹(包),因此可以明确指定扩展名。
System.import('boot.tp')
.then(null, console.error.bind(console));
和
import { AppComponent } from './script.tp'