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 15

image

Creating Custom Directives

In Chapters 1012, I showed you how to use the built-in directives that AngularJS provides, including directives that handle one- and two-way data bindings (ng-bind and ng-model), generate content from data (such as ng-repeat and ng-switch), manipulate HTML elements (such as ng-class and ng-if), and respond to user interaction (such as ng-click and ng-change). In Chapter 12, I demonstrated the directives that replace the standard HTML form elements to enable data validation and perform common tasks such as generating option elements.

AngularJS comes with a comprehensive range of directives that address most ...

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