The ngChange allows to evaluate given expression when user changes the input.
Evaluate given expression when user changes the input. The expression is not evaluated when the value change is coming from the model.
Note, this directive requires ngModel to be present.
Usage
as attribute
<input
ng-change="expression">
...
</input>
Parameters
ngChange – {expression} – Expression to evaluate upon change in input value.
References: