A

Admin • 825.56K Points
Coach

Q. What is a structural directive in Angular?

  • (A) A directive that changes CSS styles
  • (B) A directive that changes layout by adding/removing DOM elements
  • (C) A directive that logs events
  • (D) A directive that handles animations
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
Structural directives like *ngIf or *ngFor modify the DOM layout.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.