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-mousedown Event Example
Keywords : Angularjs mousedown event example, how to use ngmousedown event in angularjs with example, Angularjs raise event on mouse click example, Angularjs mouse click event example
Example
<!DOCTYPE html> <html> <head> <title> AngularJs ng-mousedown 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('ngmousedownApp', []); app.controller('ngmousedownCtrl', function ($scope) { $scope.count = 0; $scope.getdetails = function () { $scope.count = $scope.count + 1; } }); </script> </head> <body> <div ng-app="ngmousedownApp" ng-controller="ngmousedownCtrl"> <h2>AngularJS ng-mousedown Event Example</h2> <input type="button" ng-mousedown="getdetails()" value="Click Here"><br /><br /> <span style="color:Red">No. of Times MouseDown Event Fired: {{count}}</span> </div> </body> </html>
Click Here to See Result
Result
Previous
Next