admin管理员组文章数量:1399997
Everything seems to work fine, I have intellisense and such. However, when I run premit inspections I have tons of warnings, like:
Warning:(8, 58) Attribute [ngSwitch] is not allowed here
Warning:(9, 42) Attribute [attr.for] is not allowed here
Warning:(10, 14) Attribute *ngSwitchCase is not allowed here
Warning:(11, 32) Attribute *ngFor is not allowed here
Warning:(12, 38) Attribute [attr.for] is not allowed here
...
And so forth and so forth.
How do I instruct the IDEA that these are fine? I do not want to disable the inspection blindly, but not sure if there is a way to avoid it.
EDIT 1
I have AngularJS plugin already installed:
Everything seems to work fine, I have intellisense and such. However, when I run premit inspections I have tons of warnings, like:
Warning:(8, 58) Attribute [ngSwitch] is not allowed here
Warning:(9, 42) Attribute [attr.for] is not allowed here
Warning:(10, 14) Attribute *ngSwitchCase is not allowed here
Warning:(11, 32) Attribute *ngFor is not allowed here
Warning:(12, 38) Attribute [attr.for] is not allowed here
...
And so forth and so forth.
How do I instruct the IDEA that these are fine? I do not want to disable the inspection blindly, but not sure if there is a way to avoid it.
EDIT 1
I have AngularJS plugin already installed:
Share Improve this question edited Aug 18, 2016 at 22:52 mark asked Aug 18, 2016 at 22:27 markmark 62.9k96 gold badges342 silver badges669 bronze badges 2- Have you tried using the AngularJS Plugin to add support? – stevenelberger Commented Aug 18, 2016 at 22:31
- 1 I already have it - see EDIT 1 – mark Commented Aug 18, 2016 at 22:52
1 Answer
Reset to default 10I've had this problem on and off over the past few months. I even posted an issue with Jetbrains and the thread seems to have received much attention since.
I just resolved the problem by removing my .idea directory for the project and re-opening the IDE.
本文标签:
版权声明:本文标题:javascript - Attribute [ngSwitch] is not allowed here, this is what IntelliJ IDEA 2016 tells me for an Angular2 template, why? - 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741557760a2385261.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论