O'Reilly logo

Mastering AngularJS Directives by Josh Kurz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Directives and Animations

We know that directives are the only place where DOM manipulation should be performed inside of an AngularJS application. This fact can give us the assurance that a properly structured AngularJS application will have readable and testable logic. Now that the basics of DOM manipulation have been covered, we can create more advanced use cases. What if we wanted to add animations? Would this mess with our perfectly structured, handcrafted directives?

The answer is no. AngularJS has created a wonderful module that allows for simple, easy animation integrations with directives. This is accomplished by separating animation-specific logic from basic DOM manipulation logic. The separation creates less complexity and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required