Ng-Mousedown-3

 
When we mouse down on the button it will increase the count by 1.
 
 
 
<!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> <div ng-init="c=1"> <button ng-mousedown="c=c+1">Mouse Down</button><br /> Counter = {{c}} </div> </div> </body> </html>
Output