这里不允许使用[ngSwitch]属性,这是IntelliJ IDEA 2016告诉我的Angular2模板的原因,为什么?

mar*_*ark 4 javascript intellij-idea angular

一切似乎都正常,我有智能感知功能。但是,当我进行预提交检查时,会有大量警告,例如:

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
...
Run Code Online (Sandbox Code Playgroud)

依此类推。

我如何指示IDEA这些没问题?我不想盲目地禁用检查,但是不确定是否有避免的方法。

编辑1

我已经安装了AngularJS插件: 在此处输入图片说明

Ste*_*aul 8

在过去的几个月里,我经常遇到这个问题。我什至发布了Jetbrains 的问题,此后线程似乎受到了很多关注。

我只是通过删除项目的.idea目录并重新打开IDE来解决该问题