O'Reilly logo

AngularJS Directives by Alex Vanston

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

Summary

Hopefully by this point I've whetted your appetite by elaborating on some of the power that each directive can utilize. The simpler properties such as template, priority, and basic linking should already have demonstrated a taste of the kind of modular extensibility directives can add to your development arsenal. And we'll revisit each of these properties over the next several chapters as we dive into the inner workings of scoping, controllers, and transclusion, as I recognize many of the options discussed likely still seem like a magic black box. Next, however, let's take a look at some of Angular's built in directives, ng-repeat and ng-switch, for a study into why we separate compile and link, and how you can use that for your own custom ...

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