Generic Angular directive to handle single and double clicks on the same element

HTML has a special event to handle double clicks which is: ‘dblclick’. The scenario becomes a little complicated though, when we need to…