-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Learning Angular
By :

Custom directives encompass a vast world of possibilities and use cases, and we would need an entire book to showcase all the intricacies and possibilities they offer. In a nutshell, they allow you to attach advanced behaviors to elements in the DOM or modify their appearance. As we have already learned, directives mainly fall into structural and attribute categories. In the following sections, we will showcase how to create a directive for each category from scratch.
Attribute directives are commonly used to alter the appearance of an HTML element. We have all likely found ourselves in a situation where we want to add copyrighted information to our applications. Ideally, we want to use this information in various parts of our application, on a dashboard, or an 'about us' page. The content of the information should also be dynamic. The year or range of years (it depends on how you want to use it) should update dynamically according...