在Angular 2中,函数装饰器不工作 @组件({ 选择器:“我的应用程序”, 模板:` {{item.name} ` })
在在Angular 2中,函数装饰器不工作 @组件({ 选择器:“我的应用程序”, 模板:` {{item.name} ` }),angular,Angular,在tsconfig.json @Component({ selector: 'my-app', template: ` <ul> <li *ngFor="#item of items">{{item.name}}</li> </ul> ` }) 我想你需要提供更多关于你的问题的信息,以便其他人能够提供帮助。你收到错误信息了吗? { "compilerOptions": { "emitD
tsconfig.json
@Component({
selector: 'my-app',
template: `
<ul>
<li *ngFor="#item of items">{{item.name}}</li>
</ul>
`
})
我想你需要提供更多关于你的问题的信息,以便其他人能够提供帮助。你收到错误信息了吗?
{
"compilerOptions":
{
"emitDecoratorMetadata": true
}
}