Angular

Fundamentals of Angular Directives - Attribute Directives

PRO
Outline

Attribute Directives in Angular

  1. Accessing the nativeElement property of the injectable ElementRef class instance.
  2. Using Angular rendering engine, and specifically, the Renderer2 class to add and remove classes, and more.
  3. Decoupling our attribute directives from the Document Object Model (DOM) using the @HostListener decorator.

The goal is to learn how to build attribute directives using Angular to extend the behavior and functionality of elements in our templates.

 

I finished! On to the next chapter