Let's say I am creating a directive named 'shakeIt'. When signaled, this directive should add a class to the element it's applied on, after animation finishes, it should remove the class.
What is the best way to signal it to "shake" (add the class) without using events (I don't like using events, unless it's an event that is meant to be broadcasted/emitted globally).
Thanks :)
shakingscope variable in your directive that's set outside the directive