Ng-DoubleClick-4

 
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="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"> <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>
Output