AngularJS ng-mouseleave instruction
AngularJS examples
Executive expression when the mouse pointer leaves the element:
<Div ng-mouseleave = "count = count + 1" ng-init = "count = 0"> mouse away from me me! </ Div>
<H1> {{count}} </ h1>
<H1> {{count}} </ h1>
try it"
Definition and Usage
ng-mouseleave instruction is used to tell AngularJS mouse operation to be performed away from the HTML element.
ng-mouseleave directive does not cover elements native onmouseleave event, the event is triggered, ng-mouseleaveexpression and native onmouseleave event will be executed.
grammar
<Element ng-mouseleave = "expression "> </ element>
All HTML elements support this instruction.
Parameter Value
value | description |
---|---|
expression | Expression is executed when the mouse away on the element. |