πŸ“Š Angular
Q. Which Angular directive can be used to conditionally add or remove an element from the DOM based on multiple conditions?
  • (A) *ngIf with else block
  • (B) *ngFor
  • (C) ngClass
  • (D) ngStyle
πŸ’¬ Discuss
βœ… Correct Answer: (A) *ngIf with else block

Explanation: Using *ngIf with else allows conditional rendering based on conditions.

Explanation by: Mr. Dubey
Using *ngIf with else allows conditional rendering based on conditions.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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