Angular.js directive to stop propagation