In an anchor tag I would like call one of two different events based on if the user clicked once or twice. However if I implement ng-click
and ng-dblclick
, both are activated.
Is there any way to route to the appropriate listener based on click count?
You can use a combination of ng-click and $timeout to count the number of times the function has been executed. the code could look like something like this;