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

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Data Engineer - Takealot Group (Takealot.com | Superbalist.com | Mr D Food)

@ takealot.com | Cape Town