A

Admin • 832.27K Points
Coach

Q. What Angular directive is used to conditionally include a template based on a boolean expression?

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

Explanation by: Admin

*ngIf adds or removes elements from the DOM based on a condition.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.