What are Structural Directives and Attribute Directives?

Junior Angular

Answer

Structural directives change the DOM structure (e.g., *ngIf, *ngFor).

Attribute directives change the appearance or behavior of an element (e.g., ngClass, ngStyle).

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice