angular / vscode-ng-language-service

Angular extension for Visual Studio Code
MIT License
781 stars 117 forks source link

[(ngModel)] is not working with this extension v17.2.2, even prevents rendering. #2015

Closed icpcbot1209 closed 8 months ago

icpcbot1209 commented 8 months ago

I've wasted a lot of time why ngModel is marked as a bug. Even angular building is failed because of this "error". After disabling Angular Language Service extension, it worked fine. I even thought ngModel is not working anymore with new version of Angular and Ionic. Why this extension even dare prevents building? And what's wrong with ngModel?

image

atscott commented 8 months ago

Duplicate of https://github.com/angular/vscode-ng-language-service/issues/2001

See https://github.com/angular/vscode-ng-language-service/issues/2001#issuecomment-1971905871 for potential workarounds

Alijavedofficial commented 8 months ago

The ngModel directive is part of Angular's FormsModule, which is used for template-driven forms. If you're encountering issues with ngModel, it's crucial to ensure that FormsModule is imported in your module.

angular-automatic-lock-bot[bot] commented 6 months ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.