Ng-Mouseenter-1

 
Value of count variable increase by 1 each time when mouse enter on button.
 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script> </head> <body ng-app> <div> <input type="button" value="Mouse Enter" ng-mouseenter="count=count+1" /> {{count}} </div> </body> </html>
Output