我正在研究Visual Studio代码中的Angular项目。有没有一种方法可以使Visual Studio代码自整台上我的模型的属性?
的员工模型
这是我想要从图片2
是否有人知道如何启用这一点,是有扩展名之类的东西吗?
I'm working on an Angular project in Visual Studio Code. Is there a way to make visual studio code autcomplete the properties of my model?
This is the employee model that I want the autocompletion from picture 1
But when I'm typing I don't see the correct completions picture 2
Is there anyone who know how to enable this, is there a extension or something?
发布评论
评论(1)
在您的打字稿类中,您应该定义员工数组的类型:
On your typescript class You should define the type of employees array: