A

Admin • 833K Points
Coach

Q. Which Angular directive is used to conditionally include or exclude elements in the DOM?

  • (A) *ngIf
  • (B) *ngFor
  • (C) ngSwitch
  • (D) ngClass
  • Correct Answer - Option(A)
  • Views: 30
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

*ngIf adds or removes elements based on the condition.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.