AngularJS ng-blur Directive

The AngularJS ng-blur directive specifies that what to do if an HTML element loses focus.

It doesn't override the element's original onblur event and both the ng-blur expression and the original onblur event will be executed.

Note: This ng-blur directive is supported by the HTML tags like < a >, < input >, < select >, < textarea >, and the window object.

Syntax:

Parameter explanation:

expression: It specifies an expression that is executed when an element loses focus.

Let's take an example to demonstrate ng-blur directive.

See this example:

Test it Now



Latest Courses