A

Admin • 830.13K Points
Coach

Q. What happens when you use *ngIf and *ngFor on the same element?

  • (A) Both directives work simultaneously
  • (B) Only *ngIf works
  • (C) Error occurs
  • (D) Angular merges both
  • Correct Answer - Option(C)
  • Views: 16
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
Angular does not allow multiple structural directives on the same element directly.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.