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

As you have hopefully seen, controllers provide a powerful mechanism for connecting two or more otherwise disconnected directives. This means that each directive can provide its own functionality, such as the simple timepicker plugin, but also extend its functionality if another directive is present. This targeted communication helps us make calls and interact with other pieces of an application directly without the need for the general broadcast approach provided by messaging. For the next chapter, we are moving on to a different topic entirely, transclusion, which allows you to utilize the existing content of an element when applying your directive.

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