In this example of double click we have a button Push, when you click on this button it will show alert with text "Click" and when you double click on this button first alert will show "Double Click" and second will show "Click".
<!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"> <button ng-dblclick="dblclick()">Push</button> </div> <script> var app = angular.module("clickExample", []); app.controller('ExampleController', ['$scope', '$timeout', function ($scope, $timeout) { $scope.dblclick = function () { alert('Double Click'); } }]); </script> </body> </html>