Question · Angular course · Module 3: Modules

loadChildren

Which syntax is correct for lazy loading a module?

Answer options

  • loadChildren: SamuraiModule
  • loadChildren: () => import('./samurai.module').then(m => m.SamuraiModule)
  • lazyLoad: './samurai.module'
  • import: { lazy: true, module: SamuraiModule }

You can check the correct answer by solving this task in the CodeWorlds game.