Angular / Angular basics
Types of directives in Angular.
There are 3 types of directives in Angular:
Components, directives with a template.
Structural directives, changes the DOM layout by adding and removing DOM elements. Examples are NgFor and NgIf.
Attribute directives, changes the appearance or behavior of an element, component, or another directive. Examples are NgStyle and NgClass.
More Related questions...