6
angular2如何更改组件的默认前缀以停止tslint警告
看来,当我使用Angular cli创建Angular 2应用程序时。我的默认组件前缀是AppComponent的app-root。现在,当我将选择器更改为其他名称时,说“ abc-root” @Component({ selector: 'abc-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) vscode警告我, [tslint] The selector of the component "AppComponent" should have prefix "app"
142
angular