Ng-Mousemove-5

 

Textbox value will increase if we move the mouse in textbox.Value is shown is textbox because it is bind to mouseMove variable with ng-model directive.

 
 
 
<!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> Mouse Move: <input type="text" ng-mousemove="mouseMove=mouseMove+1" ng-model="mouseMove" /> </div> </body> </html>
Output