Simple directive to avoid double clicks in angular