Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
AngularJS ng-mouseleave Event Example
Keywords : Angularjs mouse leave event example, Angularjs mouse leave directive example, Angularjs raise function while mouse leaves from html element example, Angularjs ngmouseleave function example
Example
<!DOCTYPE html> <html> <head> <title> AngularJs ng-mouseleave Event with Example </title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script type="text/javascript"> var app = angular.module('ngmouseleaveApp', []); app.controller('ngmouseleaveCtrl', function ($scope) { $scope.count = 0; $scope.getdetails = function () { $scope.count = $scope.count + 1; } }); </script> </head> <body> <div ng-app="ngmouseleaveApp" ng-controller="ngmouseleaveCtrl"> <h2>AngularJS ng-mouseleave Event Example</h2> <input type="button" ng-mouseleave="getdetails()" value="Move Away From Here"><br /><br /> <span style="color:Red">No. of Times MouseLeave Event Fired: {{count}}</span> </div> </body> </html>
Click Here to See Result
Result
Previous
Next