Skip to content
Advertisement

Tag: angular-ngmodelchange

(change) vs (ngModelChange) in angular

Angular 1 does not accept onchange() event, it’s only accepts ng-change() event. Angular 2, on the other hand, accepts both (change) and (ngModelChange) events, which both seems to be doing the same thing. What’s the difference? which one is best for performance? ngModelChange: vs change: Answer (change) event bound to classical input change event. https://developer.mozilla.org/en-US/docs/Web/Events/change You can use (change) event

Advertisement