Imagine I am developing a custom directive called 'wiggleEffect'. The directive is designed to add a specific class to the targeted element, initiate an animation effect, and then remove the class upon completion.
How can I activate the 'wiggle' action without relying on events? I prefer not to use events unless they serve a global broadcasting purpose.
Appreciate your insights :)