top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between change vs ngModelChange in Angular?

0 votes
1,235 views
What is the difference between change vs ngModelChange in Angular?
posted Apr 12, 2018 by Manish Tiwari

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

(change) event bound to classical input change event. - https://developer.mozilla.org/en-US/docs/Web/Events/change

You can use (change) event even if you don't have a model at your input as

<input (change)="somethingChanged()">

(ngModelChange)strong text is the @Output of ngModel directive. It fires when the model changes. You cannot use this event without ngModel directive.

answer May 20, 2018 by Chahat Sharma
...