Question · Angular course · Module 3: Modules
forRoot vs forChild
Which RouterModule method do we use in a feature module for lazy loading?
Answer options
- RouterModule.forRoot(routes)
- RouterModule.forChild(routes)
- RouterModule.forFeature(routes)
- RouterModule.forLazy(routes)
You can check the correct answer by solving this task in the CodeWorlds game.