HTML文件无法在VS2017 15.7中检测Angular 6的Typescript变量[Intellisense]

时间:2018-07-25 12:04:48

标签: angular visual-studio typescript intellisense angular6

只需将我们的应用程序移植到VS .NET Core 2.1应用程序中,一切就可以正常工作,但是当我们编写.html文件时,没有代码完成。

在VS Code中,它可以完美运行。我会附上一些图片。

在这里您可以看到.ts文件中的intellisense效果很好:

header.component.ts

First

然后在.html文件中,您将无法访问.ts文件中的任何变量。

header.component.html

Seconds

如您所见,什么都没有出现。

在项目属性中使用最新的Typescript。

0 个答案:

没有答案