@angular/forms ngModel bug
See original GitHub issueπ bug report
Affected Package
The issue is caused by package @angular/formsIs this a regression?
@angular/forms 9, 10, 11 have this issue. I didn't check another versions of @angular/formsDescription
Properties order: [(ngModel)]=βtestβ (ngModelChange)=βtestChange()β emits right value
Properties order: (ngModelChange)=βtestChange()β [(ngModel)]=βtestβ emits WRONG (previous) value
π¬ Minimal Reproduction
https://stackblitz.com/edit/angular-ngmodel-bugπ₯ Exception or Error
No exeptions
π Your Environment
Angular Version:
@angular/forms 9.0.0
@angular/forms 10.0.0
@angular/forms 11.0.0
Anything else relevant?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Can't bind to 'ngModel' since it isn't a known property of 'input'
I'm just staring Angular and saw this error when doing the Tour of Heroes tutorial. Sure enough, they now call this out in...
Read more >Can't bind to 'ngModel' since it isn't a known property of 'input'
To fix Can't bind to 'ngModel' since it isn't a known property of 'input' error in Angular we have to import FormsModule in...
Read more >NgModel - Angular
Creates a FormControl instance from a domain model and binds it to a form control element. ... Tracks the configuration options for this...
Read more >Angular Forms Guide: Template Driven and Reactive Forms
We will go through the following topics: Template Driven Forms (similar to AngularJs ng-model); The ngModel, ngForm and ngSubmit directivesΒ ...
Read more >Angular error Can't bind to 'ngModel' since it isn't a ... - YouTube
MUMBAI. Angular error Can't bind to ' ngModel ' since it isn't a known property of input. 16K views 2 years ago. Questpond....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@DbrmnPhrh why there should be any error or warning?
It is not obvious and there are no error or warning in the console(