What is the difference between 'ng-click' and 'ng-mousedown' directives

Viewed 6282

The line <div ng-mousedown="count = count + 1" ng-init="count=0">Click me!</div> means,'Executing an expression when a mouse click occurs.

similarly, the line <button ng-click="count = count + 1" ng-init="count=0">Click me!</button> means, 'Increase the count variable by one, each time the button is clicked'

Now what confuses me, is when should i use ng-click and when should i use ng-mousedown?? I mean what exact difference is there between the two?

3 Answers
Related