Structural directives like *ngIf and *ngFor need CommonModule in standalone components.
Import [Ng.CommonModule] in standalone @Component when using *ngIf or *ngFor.
Important interview questions and answers
- Q: Why does this matter?
A: Structural directives like *ngIf and *ngFor need CommonModule in standalone components.
Self-check
- Summarize Built-in directives in one sentence.
- What would you try next in the playground?