AngularJS ng-mouseleave Directive
AngularJS Example
Execute an expression when the mouse pointer leaves the element:
Definition and Usage
The ng-mouseleave directive is used to tell AngularJS what to do when the mouse leaves an HTML element.
The ng-mouseleave directive does not override the element's native onmouseleave event, both the ng-mouseleave expression and the native onmouseleave event will be executed.
Syntax
This directive is supported by all HTML elements.
Parameter Values
| Value | Description |
|---|---|
| expression | The expression to execute when the mouse leaves the element. |