Evaluate the given expression when the user changes the input. The expression is evaluated immediately, unlike the JavaScript onchange event which only triggers at the end of a change (usually, when the user leaves the form element or presses the return key).
The 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:
$parsers transformation pipeline has not changednull
Note, this directive requires ngModel to be present.
<ANY ng-change="expression"> ... </ANY>
| Param | Type | Details |
|---|---|---|
| ngChange | expression | Expression to evaluate upon change in input value. |
© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.7.8/docs/api/ng/directive/ngChange