AngularJS ng-blur instruction
AngularJS examples
Executive expression when the input field loses focus (onblur):
<Input ng-blur = "count = count + 1" ng-init = "count = 0" />
<H1> {{count}} </ h1>
<H1> {{count}} </ h1>
try it"
Definition and Usage
ng-blur instructions for telling expression AngularJS HTML element loses focus when you need to perform.
AngularJS inng-blur directive does not cover native onblur event, if the event is triggered, ng-blurexpression and native onblur event will be executed.
grammar
<Element ng-blur = "expression "> </ element>
<a>, <input>, <select>, <textarea>, the window object support.
Parameter Value
value | description |
---|---|
expression | Expression loses focus when executed. |