Q. What is the main difference between structural and attribute directives in Angular?
β
Correct Answer: (A)
Structural directives change DOM layout; attribute directives change element appearance or behavior
Explanation: Structural directives modify DOM structure like *ngIf, *ngFor; attribute directives modify elements without changing structure.