A

Admin • 825.56K Points
Coach

Q. How do you lazy load a feature module in Angular?

  • (A) Import the module eagerly in app.module.ts
  • (B) Use loadChildren in route configuration
  • (C) Use *ngIf directive
  • (D) Declare the module in declarations array
  • Correct Answer - Option(B)
  • Views: 12
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
loadChildren dynamically loads a module on-demand during routing.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.