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-mouseenter Event Example
Keywords : Angularjs ng-mouseenter event example, Angularjs execute functions on mouse enter on input elements example, Angularjs ng-mouseenter directive example, Angularjs call function on mouse over
Example
<!DOCTYPE html> <html> <head> <title> AngularJs ng-mouseenter 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('ngmouseenterApp', []); app.controller('ngmouseenterCtrl', function ($scope) { $scope.count = 0; $scope.getdetails = function () { $scope.count = $scope.count + 1; } }); </script> </head> <body> <div ng-app="ngmouseenterApp" ng-controller="ngmouseenterCtrl"> <h2>AngularJS ng-mouseenter Event Example</h2> <input type="button" ng-mouseenter="getdetails()" value="Bring Mouse Cursor Here"><br /><br /> <span style="color:Red">No. of Times MouseEnter Event Fired: {{count}}</span> </div> </body> </html>
Click Here to See Result
Result
Previous
Next