user647314
user647314

Reputation: 327

VSCode checking invalid references in Angular template

VSCode doesn't warn/underline the invalid/not existing references in the html template like this below

  <div class="header" color="primary" (click)="doSomething9999()"> <!-- click handler doesnt exist -->

I have tslint, eslint plugin installed, but they don't warn me about this kind of issue.

Which settings can help me?

Thanks in advance.

Csaba

(I searched in the Google but somehow I could not focus on an exact solution)

Upvotes: 2

Views: 401

Answers (2)

user647314
user647314

Reputation: 327

so I tried some plugin and the 'Angular Language Service' - Editor services for Angular templates could help me

enter image description here

Upvotes: 1

Michał Dziwota
Michał Dziwota

Reputation: 948

didn't you forget to add a slash in closing tag - </div>.

Upvotes: 0

Related Questions