Ng-DoubleClick-1

 

In this Example if we click on link Double Click Here it will call the function showAlert() which display the alert with specified text.

 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Welcome to LearnKode - A code learning platform</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script> </head> <body ng-app="clickExample"> <div ng-controller="ExampleController"> <a href="javascript:void(0)" ng-dblclick="showAlert()">Double Click Here </a> </div> <script> var app = angular.module("clickExample", []); app.controller('ExampleController', ['$scope', function ($scope) { $scope.showAlert = function () { alert("This is an example of ng-dblclick"); } }]); </script> </body> </html>
Output