ng-click and ng-dblclick on same element

1
<div ng-click = "clickOne()" ng-dblclick = "clickTwo()">Enter</div>

JavaScript >

$scope.clickOnce = function () {    
  alert("CLick One");    
}

$scope.clicktwice= function () {    
 alert("CLick two");    
}

Would some way my ng-click not interfere with my ng-dblclick. when clicking once wait a while before running the function, to differentiate ng-dblclick from ng-click, because right now I double-clicking it triggers my one-click function.

    
asked by anonymous 22.11.2017 / 14:38

0 answers