A

Admin • 802.91K Points
Coach

Q. What is the main difference between structural and attribute directives in Angular?

  • (A) Structural directives change DOM layout; attribute directives change element appearance or behavior
  • (B) Attribute directives change DOM layout; structural directives change appearance
  • (C) Both change the DOM layout
  • (D) Both change element styles
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
Structural directives modify DOM structure like *ngIf, *ngFor; attribute directives modify elements without changing structure.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.