Q. Which Angular directive conditionally includes a template?

  • (A) *ngIf
  • (B) *ngFor
  • (C) *ngSwitchCase
  • (D) *ngClass
πŸ’¬ Discuss
βœ… Correct Answer: (A) *ngIf
Explanation: *ngIf conditionally adds or removes a part of the DOM.
Explanation by: Mr. Dubey
*ngIf conditionally adds or removes a part of the DOM.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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