If I write a method name in angular template (HTML) that doesn't exist in angular component, the method is not underlining in the template. It should warn me that save()
doesn't exist. I'm using Angular 11 and VS Code, and I have seen this functionality somewhere.
How can I make the underline show in VS Code when the method in the angular template doesn't exist?
<button (click)="save()">Save</button>
CodePudding user response:
Install this extension "Angular Language Service"