A

Admin • 802.91K Points
Coach

Q. What does the `ngIf` directive do?

  • (A) Conditionally includes a template
  • (B) Repeats a template for each item in a list
  • (C) Binds a model to a form input
  • (D) Injects a service
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
The `ngIf` directive adds or removes an element based on a condition.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.