The ngMousedown directive allows you to specify custom behavior on mousedown event.
<ANY
ng-mousedown="expression">
...
</ANY>
Param | Type | Details |
---|---|---|
ngMousedown | expression |
Expression to evaluate upon
mousedown. (Event object is available as |
<button ng-mousedown="count = count + 1" ng-init="count=0">
Increment (on mouse down)
</button>
count: {{count}}