πŸ“Š Angular
Q. Which directive is used for conditional rendering in Angular?
  • (A) *ngSwitch
  • (B) *ngIf
  • (C) *ngFor
  • (D) ngModel
πŸ’¬ Discuss
βœ… Correct Answer: (B) *ngIf

Explanation: *ngIf is used to conditionally include or exclude an element.

Explanation by: Mr. Dubey
*ngIf is used to conditionally include or exclude an element.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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