डाउनलोड पी.डी.एफ. ई-बुक्स
AJS - Directives ng-mouseleave

ng-mouseleave directive; HTML Element पर जब mouse cursor को over करके leave किया जाता है तब दिया हुआ expression execute होता है |


Syntax for ng-mouseleave Directive in AngularJS

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

ng-mouseleave Attribute's Parameters in AngularJS

expression : यहाँ पर expression दिया जाता है |


Example for ng-mouseleave Directive using String in AngularJS

Source Code :
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
</head>
<body>

<div ng-app="">

<div ng-init="c = 0" ng-mouseleave="c = c + 1">Click Me</div>

<p>Mouse Leave {{c}} time(s)</p>

</div>

</body>
</html>
Output :
Click Me

Mouse Leave {{c}} time(s)