Improve this Doc View Source ngChange
- directive in module ng
ngChange expression is only evaluated when a change in the input value causes a new value to be committed to the model.
It will not be evaluated:
- if the value returned from the
$parserstransformation pipeline has not changed
- if the input has continued to be invalid since the model will stay
- if the model is changed programmatically and not by a change to the input value
Note, this directive requires
ngModel to be present.
- This directive executes at priority level 0.
- as attribute:
<input ng-change="expression"> ... </input>
|ngChange|| || |
Expression to evaluate upon change in input value.
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.