WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

AngularJS ng-mouseleave Directive


Example

Execute an articulation when the mouse cursor leaves a <div> element:

<div ng-mouseleave="count = tally + 1" ng-init="count=0">Mouse over me! (what's more, mouse far from me...)</div>

<h1>{{count}}</h1>
Try it yourself »

Definition and Usage

The ng-mouseleave order guides AngularJS when a mouse cursor leaves the particular HTML element.

The ng-mouseleave order from AngularJS won't abrogate the component's unique onmouseleave occasion, both will be executed.


Syntax

<element ng-mouseleave="expression"></element>

Supported by all HTML elements.


Parameter Values

Value Description
expression An articulation to execute when the mouse cursor leaves an element.