A

Admin • 802.91K Points
Coach

Q. What does `ngIf` directive do?

  • (A) Conditionally includes or removes an element from the DOM
  • (B) Loops through a list of items
  • (C) Binds an event
  • (D) Defines a service
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
`ngIf` adds or removes elements from the DOM based on a boolean expression.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.