[AngularJS] Re: Using a directive to prevent other directives to execute

2014-04-18 Thread Michel Parpaillon
Thanks Luke, I'll do that then. Le jeudi 17 avril 2014 08:49:46 UTC+2, Luke Kende a écrit : Personally, I would approach the problem a different way all together. Trying to intercept the click and stop propagation sees hack-ish. No? Other approach ideas: - put a flag on rootScope

[AngularJS] Re: Using a directive to prevent other directives to execute

2014-04-17 Thread Luke Kende
Personally, I would approach the problem a different way all together. Trying to intercept the click and stop propagation sees hack-ish. No? Other approach ideas: - put a flag on rootScope defining whether the user is logged in or not and reference it in the logic functions like ng-click or