Q. Which Angular directive is used to conditionally include or exclude a template?

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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