YUNOVA · Angular · Module 12: Angular architecture
Custom directives
Custom directives
Key points
- An attribute directive changes how an existing element looks or behaves.
- @HostListener and @HostBinding react to events and set properties.
- Structural directives use TemplateRef and ViewContainerRef to add or remove views.