In this article we will discuss about ngChange and ngBlur directives.
Introduction AngularJS provides many built-in directives. In this article we will discuss about ngChange and ngBlur directives. ngChange This directive allows us to define custom behavior on element change event. This directive has highest priority. Here changes are applied immediately while in the JavaScript “onchange” event which only triggers at the end of all change. The ngChange directive only access the value when changes made in input value and new value committed to the model. This directive required ngModel directive. Syntax < <input ng-change="expression" ng-model=”expression”> ... </input > Example HTML
Hands-On With AngularJS Using ASP.NET