πŸ“Š Angular
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Conditionally includes a template

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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