Angularjs Examples

AJS Examples


AngularJS ng-DblClick Directive

The AngularJS ng-dblclick directive is used to attach specific functionality on dblclick event.

Syntax

<button ng-dblclick="addFunctionality">

AngularJS ng-DblClick Directive Example

<html ng-app>
<head>
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
</head>
<body>
<div ng-dblclick="count = count + 1" ng-init="count=0" style="background:#689444">  
    dblclick count: {{count}} 
</div>
</body>
</html>
See Live Example