O'Reilly logo

Pro AngularJS by Adam Freeman

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 17

image

Advanced Directive Features

In this chapter, I complete my coverage of custom directives by showing you the most advanced features. These are not features you will need often, but they are powerful and flexible and can help you build complex and fluid directives. Table 17-1 summarizes this chapter.

Table 17-1. Chapter Summary

Problem

Solution

Listing

Wrap elements.

Create a directive that uses transclusion.

1

Repeat transcluded content.

Use a compile function.

2

Communicate between directives.

Use directive controllers.

3–5

Create custom form elements.

Use the ngModel controller.

6

Handle external data changes in a ...

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