Improve this Doc  View Source

ngDblclick

  1. - directive in module ng

The ngDblclick directive allows you to specify custom behavior on a dblclick event.

Directive Info

  • This directive executes at priority level 0.

Usage

  • as attribute:
    <ANY
      ng-dblclick="expression">
    ...
    </ANY>

Arguments

Param Type Details
ngDblclick expression

Expression to evaluate upon a dblclick. (The Event object is available as $event)

Example

<button ng-dblclick="count = count + 1" ng-init="count=0">
  Increment (on double click)
</button>
count: {{count}}