AngularJS ng-mouseleave instructie
Definition and Usage
ng-mouseleave
AngularJS tells AngularJS what operation to perform when the mouse cursor leaves a specific HTML element.
The directive of ng-mouseleave
The directive does not override the original onmouseleave event of the element, both will be executed.
Example
Expressie die wordt uitgevoerd wanneer de muispijl van het <div> element afgaat:
<div ng-mouseleave="count = count + 1" ng-init="count=0">Zet de muis boven mij!(En verplaats de muis...)</div> <h1>{{count}}</h1>
Syntax
<element ng-mouseleave="expression</element>
All HTML elements support this.
Parameters
Parameters | Description |
---|---|
expression | Expressie die wordt uitgevoerd wanneer de muispijl van het element afgaat. |