ng-dblclick
Handler for dblclick event
Description
The ng-dblclick directive allows you to specify custom behavior when an
element is double clicked.
Parameters
ng-dblclick
Type: Expression
Restrict:
AElement: ANY
Priority:
0Description: Expression to evaluate upon dblclick event. MouseEvent object is available as
$event.Example:
<div ng-dblclick="$ctrl.greet($event)"></div>
Demo
<section ng-app>
<button
class="btn btn-dark"
ng-init="count = 0"
ng-dblclick="count = count + 1"
>
Increment
</button>
<span> count: {{count}} </span>
</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.