AngularJS ng-dblclick Directive
Definition and Usage
ng-dblclick
Directives tell AngularJS what to do when the HTML element is double-clicked.
In AngularJS ng-dblclick
Directives do not override the original ondblclick event of the element, both of which will be executed.
Example
Increase the count variable by 1 each time the title is double-clicked:
<h1 ng-dblclick="count = count + 1" ng-init="count=0">Welcome</h1>
Syntax
<element ng-dblclick="expression</element>
All HTML elements support it.
Parameters
Parameters | Description |
---|---|
expression | An expression to be executed when the element is double-clicked. |