Question - What are directives in Angular?
Answer -
Directives are one of the core features of Angular. They allow a developer to write new, application-specific HTML syntax. In actuality, directives are functions that are executed by the Angular compiler when the same finds them in the DOM. Directives are of three types:
- Attribute Directives
- Component Directives
- Structural Directives