AngularJS ng-blur بيانات
Definition and Usage
ng-blur
Directive tells AngularJS what operation to perform when the HTML element loses focus.
AngularJS's ng-blur
Directive does not override the original onblur event of the element,ng-blur
Both the expression and the original onblur event will be executed.
Example
When the input field loses focus (onblur), execute an expression:
<input ng-blur="count = count + 1" ng-init="count=0" /> <h1>{{count}}</h1>
Syntax
<element ng-blur="expression</element>
Support <a>
,<input>
,<select>
,<textarea>
and the window object.
Parameters
Parameters | Description |
---|---|
expression | Expression to be executed when the element loses focus. |