Aar*_*ron 2 javascript angular
我想用html文件替换我的代码内模板.我该怎么做?
Greeting.annotations = [
new angular.ComponentAnnotation({
selector: 'greeting'
}),
new angular.ViewAnnotation({
template: '<h1>Hello!</h1>'
})
];
Run Code Online (Sandbox Code Playgroud)
我想要这样的东西
template: 'path/to/my/template.html'
Run Code Online (Sandbox Code Playgroud)
我使用Angular2和ES5.
| 归档时间: |
|
| 查看次数: |
4992 次 |
| 最近记录: |