Closed dominik-werner-casra closed 6 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
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.
π bug report
Description
When using Angular 17 and writing a standalone component, the usage of
[(ngModel)]
is wrongly marked as an error in the editor while the app works as expected:error:
my.component.ts:
my.component.html:
Bug Type
What does this bug affect
Reproduction
Steps to reproduce the behavior:
FormsModule
to the imports of the component[(ngModel)]
to bind the input to the propertyExpected behavior
An error should only be shown if the HTML template is wrong. As long as the
FormsModule
is imported by a standalone component it should be possible to use[(ngModel)]
without an error prompt.Logs
π Your Environment
Angular Version:
Extension Version:
VSCode Version:
Operating System:
Extension options: