AngularJs ng-mousedown event example
home
Run
screen_rotation
fullscreen
cloud_download
<!DOCTYPE html> <html lang="en"> <head> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script> </head> <body> <div ng-app="" ng-init="i=1"> <button ng-mousedown="i = i+1">Mouse Down(On Mousedown)</button> Counter = {{i}} </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script> </head> <body> <div ng-app="" ng-init="i=1"> <button ng-mousedown="i = i+1">Mouse Down(On Mousedown)</button> Counter = {{i}} </div> </body> </html>
Copyrights@tutorialsplane.com