April 21, 2024, 7:43 a.m. | Nhan Nguyen

DEV Community dev.to


All Angular Directives have a selector, which specifies which HTML elements will the directive work with.


Most often, the selector is an attribute selector, which means that the directive will essentially be a custom HTML attribute.


However, Angular directives can be much more than just custom attributes:

⭐ Non-custom attribute selectors

⭐ Attribute selectors with values

⭐ Class selectors

⭐ Combining selectors

⭐ etc


But it can not ⛔ target child-parent relations. Angular Directive selector is impossible to target …

angular beginners however html programming values will work

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US

Research Engineer

@ Allora Labs | Remote

Ecosystem Manager

@ Allora Labs | Remote

Founding AI Engineer, Agents

@ Occam AI | New York