Easy Tutorial
❮ Angularjs Animations Ng Ng Disabled ❯

AngularJS ng-blur Directive

AngularJS Reference Manual


AngularJS Example

Execute an expression when the input field loses focus (onblur):


Definition and Usage

The ng-blur directive is used to tell AngularJS which expression should be executed when an HTML element loses focus.

The ng-blur directive in AngularJS does not override the native onblur event, and if the event is triggered, both the ng-blur expression and the native onblur event will be executed.


Syntax

<a>, <input>, <select>, <textarea>, window object support.


Parameter Values

Value Description
expression The expression to be executed when losing focus.

AngularJS Reference Manual

❮ Angularjs Animations Ng Ng Disabled ❯