A

Admin • 828.70K Points
Coach

Q. How can you lazy-load a module in Angular?

  • (A) Using loadChildren in route configuration
  • (B) Using ngIf on module
  • (C) Using setTimeout
  • (D) By dynamically importing it in app.module.ts
  • Correct Answer - Option(A)
  • Views: 14
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
Lazy loading is configured with the `loadChildren` property in routes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.