简体   繁体   English

*ng对于WebStorm中的项目没有代码完成

[英]*ngFor no code completion for item in WebStorm

I'm not sure if this is a problem or if I should not expect it to work but when I use *ngForm as shown below I can not get code completion for employee.我不确定这是一个问题还是我不​​应该期望它起作用,但是当我使用如下所示的*ngForm ,我无法为员工完成代码。 In other words, the IDE doesn't seem to know that employee is of type Employee although it does recognize employees from 'assetsComponent public var employees:Employee[]'换句话说,IDE 似乎不知道员工是Employee类型,尽管它确实识别来自“assetsComponent public var员工:Employee []”的员工

<div>All Employess</div>
<div *ngFor="let employee of employees">{{ employee.firstName }} {{employee.lastName}}</div>

Am I doing something wrong?我做错了什么吗?

I'm using:我正在使用:

Angular JS Version: 163.6110.28
WebStorm 2016.3 EAP

it's a WebStorm issue;这是一个 WebStorm 问题; please vote for https://youtrack.jetbrains.com/issue/WEB-23754 to be notified on any progress with it请投票给https://youtrack.jetbrains.com/issue/WEB-23754以通知它的任何进展

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM