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

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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