A

Admin • 832.27K Points
Coach

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

  • (A) By importing the module in AppModule
  • (B) By defining the module path with loadChildren in routing
  • (C) By adding the module to declarations
  • (D) By using @LazyLoad decorator
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

Lazy loading modules is done by setting loadChildren with the module's path in routes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.