首页 > 解决方案 > Angular 语言服务不检查 html 错误

问题描述

我在我的 vs 代码上安装了 Angular 语言服务。问题是它给了我建议但不检查 html 错误。

app.component.html

<button (click)="onS()">{{timeLeft}}</button>

但是,在app.component.ts中,我没有onS()仍然在 html 文件中的方法,它不会显示错误。任何人都可以帮助我,或者是否可以为此建议任何其他 vs 代码扩展。

标签: angularvisual-studio-code

解决方案


推荐阅读