Chapter 2
Conquering Components and Directives
Section 6
Attaching Behaviorto DOM Elements with Directives
In the course of creating applications, you will often find it useful to be able to attach component-stylebehavior to DOM elements, but without the need to have templating. - Define the basic class that will power the attribute directive - Decorate the ClickToRevealDirective class and add the attribute to the element - Provide Article component with the ability to attach itself to click events