AngularJS Built-in directives ngDblclick


The ng-dblclick directive is useful when you want to bind a double-click event into your DOM elements.

This directive accepts an expression


<input type="number" ng-model="num = num + 1" ng-init="num=0">

<button ng-dblclick="num++">Double click me</button>

In the above example, the value held at the input will be incremented when the button is double clicked.