डाउनलोड पी.डी.एफ. ई-बुक्स
AJS - Directives ng-dblclick

ng-dblclick directive ये जब किसी HTML Element पर double click किया जाता है तब दिया हुआ expression execute करता है |


Syntax for ng-dblclick Directive in AngularJS

<element ng-dblclick="expression">
</element>

ng-dblclick Attribute's Parameters in AngularJS

expression : यहाँ पर expression दिया जाता है |


Example for ng-dblclick Directive using String in AngularJS

Source Code :
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
</head>
<body>

<div ng-app="">

<p ng-init="c = 0" ng-dblclick="c = c + 1" />
Double Click Me.
</p>

<p>Double clicked {{c}} times.</p>

</div>

</body>
</html>
Output :

Double Click Me.

Double clicked {{c}} times.