Access Element, Class in Directive


Hai All

I need to know how to add or remove class, Add the animation in directive ?

Please give sample or sample refer URL ?


For classes, use ngClass. Not sure what you mean by “add the animation”.


I created the menu using Directive but i need to add the animation for menu. How?