您的位置:首页 > 移动开发

The selector of the component "xxx" should have prefix "app"

2018-01-09 00:00 603 查看
在开发typescript项目的时候(如:angular),自定义的component会报TSLint: The selector of the component "xxx" should have prefix "app" (component-selector)异常,这是tslink检查前缀是否满足规则,可以修改tslint.json中的属性——component-selector的值为false,这样就不用必须app为前缀了.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  TypeScript angular
相关文章推荐