Angularjs Ng-blur Instruction
Angularjs instance
Executes an expression when the input box loses focus (onblur):
Run Result:
0
The count variable in the instance records the number of times the focus has been lost.
Definitions and usage
The ng-blur directive is used to tell angularjs the expression that the HTML element needs to execute when it loses focus.
The Ng-blur directive in ANGULARJS does not overwrite the native onblur event, and if the event is triggered, the Ng-blur expression is executed with the native onblur event.
Grammar
<element ng-blur= "expression" ></element>
<a>, <input>, <select>, <textarea> Window object support.
Parameter values
value |
Description |
Expression |
An expression to execute when the focus is lost. |
Above is the angularjs ng-blur instruction Knowledge Simple explanation, the follow-up continues to add, thanks support!