angular 5 reactive form does not give correct value for keydown
Answers
Answered by
3
Answer:Viewed 345k times
227
42
The change event is only called after the focus of the input has changed. How can I make it so that the event fires on every keypress?
<input type="text" [(ngModel)]="mymodel" (change)="valuechange($event)" />
{{mymodel}}
The second binding changes on every keypress btw.
Explanation:
Similar questions