AngularJS: API: ng/directive/ngDblclick


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="">
    ...
    </ANY>

Arguments

ParamTypeDetails
ngDblclickexpression

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

Example

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