AngularJS ng-dblclick Instruction
AngularJS Examples
Each time the mouse is double-clicked, the count variable is incremented by 1:
<
h1
ng-dblclick="count = count + 1"
ng-init=
"count=0"
Welcome
<
/h1
Try it »
Definition and Usage
ng-dblclick The directive tells AngularJS the action to take when the mouse double-clicks an HTML element.
ng-dblclick The directive does not override the element's native ondblclick event. When the mouse double-clicks,ng-dblclick both the expression and the native ondblclick event will be executed.
Syntax
<
element
ng-dblclick=
"expression"
<
/elementAll HTML elements support this directive.
Parameter value
| Value | Description |
|---|---|
| expression | The expression to execute after the element is double-clicked. |
AngularJS Reference Manual