πŸ“Š Angular
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Conditionally includes or removes an element from the DOM

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
44
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate