WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

AngularJS ng-blur Directive


Example

Execute an expresson when the info field loses center (onblur):

<input ng-blur="count = check + 1" ng-init="count=0"/>

<h1>{{count}}</h1>
Try it yourself »

Definition and Usage

The ng-blur mandate instructs AngularJS when a HTML component loses focus.

The ng-blur mandate from AngularJS won't supersede the component's unique onblur occasion, both the ng-blur articulation and the first onblur occasion will be executed.


Syntax

<element ng-blur="expression"></element>

Supported by <a>, <input>, <select>, <textarea>, and the window object.


Parameter Values

Value Description
expression An articulation to execute when a component loses focus.