Q. Which directive conditionally includes a template in the DOM?

  • (A) *ngIf
  • (B) *ngFor
  • (C) *ngSwitchCase
  • (D) *ngModel
πŸ’¬ Discuss
βœ… Correct Answer: (A) *ngIf
Explanation: *ngIf adds or removes elements based on a condition.
Explanation by: Mr. Dubey
*ngIf adds or removes elements based on a condition.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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