Anatomy of Angular Attribute @Directive selector

Anthony Miller
Aug 1, 2019 · 6 min read

Directives provide a powerful addition to the Angular platform giving us the ability to define behaviours on any element without the need to write a component. Each HTML DOM element can have zero or more directives attached, providing unlimited possibilities.

In fact Angular components are a specific type of attribute directive that contain a template.