A

Admin • 830.13K Points
Coach

Q. Which directive would you use to show an element only when a condition is true?

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

Explanation by: Admin
*ngIf is used for conditional rendering in the DOM.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.