πŸ“Š Angular
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

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