ng-mousedown
Handler for mousedown event
Description
The ng-mousedown directive allows you to specify custom behavior when a mouse
is pressed over an element.
Parameters
ng-mousedown
Type: Expression
Description: Expression to evaluate upon mousedown event. MouseEvent object is available as
$event.Example:
<div ng-mousedown="$ctrl.greet($event)"></div>
Demo
<section ng-app>
<button ng-init="count = 0" ng-mousedown="count = count + 1">
Press Mouse Down
</button>
Mouse Down {{ count }} times
</section>
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.