Jason Tree Jason Tree - 1 year ago 212
AngularJS Question

Angular react on model changes

How would you react on model changes to trigger some further action? For instance, say you have an input text field called email and you want to trigger or execute some code as soon as a user starts to type in their email.

HTML Markup:

<input type="email" ng-model="app.email">


.controller('controller', function ($scope) {


Answer Source
<input ng-change="myFunction()" type="email" ng-model="app.email"> 
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download