Javatpoint Logo
Javatpoint Logo

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.


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

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA