CHAPTER 15
Creating Custom Directives
In Chapters 10–12, 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 ...
Get Pro AngularJS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.