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=""> <head> <title>Welcome to LearnKode - A code learning platform</title> <script src=""></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>