A

Admin • 832.27K Points
Coach

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
  • Correct Answer - Option(A)
  • Views: 23
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.