πŸ“Š Angular
Q. Which structural directive is used to conditionally include an element in the DOM?
  • (A) *ngIf
  • (B) *ngFor
  • (C) *ngSwitchCase
  • (D) *ngStyle
πŸ’¬ Discuss
βœ… Correct Answer: (A) *ngIf

Explanation: *ngIf adds or removes an element based on a condition.

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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