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 11

image

Using Element and Event Directives

In this chapter I continue to describe the directives that AngularJS provides. I describe the directives that you use to add, remove, hide, and show elements in the Document Object Model (DOM); the directives that add and remove elements from classes and set individual CSS style properties; the directives for handling events; and the directives that map between the way that AngularJS relies on data bindings and an HTML feature called Boolean attributes.

Along the way, I show you how to create custom directives to respond to events for which AngularJS doesn’t provide built-in support. I don’t get into ...

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