The ng-dblclick event in the AngularJS is useful for the HTML elements for getting the double click event, defined. In case a user wishes to get the function fired or other events when the double click of the HTML elements is done, then this event will be going to be needed. All the elements of the HTML will be going to support it.
Basically, the directive of ng-dblclick will be telling the AngularJS what exactly the HTML or the HTML elements need to do when it is double-clicked. However, it is not going to be overriding the original ondblclick event of the element, as both of them are going to be executed.
<element ng-dblclick="expression"> </element>
Example: (The example is going to increase the value of the “count” of the variable, every time a double-click is done on the header.)
- AngularJS | API
- AngularJS | Animations
- AngularJS | How to use ng-idle?
- AngularJS | Directives
- What are templates in AngularJS ?
- AngularJS | Scope
- AngularJS | Services
- AngularJS | Forms
- AngularJS | Controllers
- AngularJS | ng-jq Directive
- AngularJS | Filters
- AngularJS | Routing
- AngularJS | ng-if Directive
- AngularJS | ng-csp Directive
- AngularJS | Modules
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.