Angular / Angular basics
What are structural directives in Angular?
Structual directives are responsible for HTML Layouts, reshaping DOM structure by dynamically adding and removing/manipulating elements.
Structural directives have *(asterisk) preceding the attribute name and no square brackets nor parenthesis. This makes structural directives easy to identify.
Examples for structural directives are as follows.
- ngSwitch (*ngSwitchCase and *ngSwitchDefault).
More Related questions...