【发布时间】:2020-04-03 17:27:04
【问题描述】:
我正在使用 IntelliJ,它知道 {{foo}} 是 formControlName 属性中的插值。但在 name 属性中它没有。 IntelliJ 在名称属性中认为 {{foo}} 是一个数组,我缺少一个 : 就像在 {foo : bar} 中一样。
代码编译得很好,这是 IntelliJ-Bug 还是我很幸运编译器接受了它?
<input type="radio" name="{{foo}}" formControlName="{{foo}}">
【问题讨论】:
标签: html angular intellij-idea interpolation