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

  • (A) *ngIf
  • (B) *ngFor
  • (C) *ngSwitch
  • (D) *ngStyle
πŸ’¬ Discuss
βœ… Correct Answer: (A) *ngIf
Explanation: *ngIf is used for conditional rendering in the DOM.
Explanation by: Mr. Dubey
*ngIf is used for conditional rendering in the DOM.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
78
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate