IntelliJ“未使用的变量”角度

时间:2018-08-23 13:17:36

标签: angular intellij-idea webstorm

在学习@ngrx时,我意识到以下几点:

当我将Observable定义为组件属性,并在其后缀$后,仅在模板.html文件中使用该属性时,IntelliJ不会将所使用的属性注册为灰色。当变量以$结尾时,只会发生 。您知道怎么可能吗?

Inside the component In the component's template

1 个答案:

答案 0 :(得分:2)

这是一个已知问题,跟踪为WEB-34352。 将变量重命名为不带后缀$的名称应该会有所帮助

相关问题