【发布时间】:2018-09-08 01:18:30
【问题描述】:
使用有什么区别
-
require来自模板中的节点 -
templateUrl在 Angular 2 中@Component({ selector: 'hello', template: require('./home.html'), }) @Component({ selector: 'hello', templateUrl: './hello.html', })
【问题讨论】:
标签: angular angular2-template require