AngularJS ng-dblclick Directive

The AngularJS ng-dblclick directive facilitates you to specify custom behavior on a dblclick event. It tells what to do when an HTML element is double-clicked. It doesn't override the element's original ondblclick event, both are executed.

It is supported by all HTML elements.

Syntax:

Parameter explanation:

expression: It specifies an expression that is executed when an element is double-licked.

Let's take an example to demonstrate the ng-dblclick directive.

See this example:

Test it Now



Latest Courses