In my application, I am using lazy loading to load a module called lazy
. The module is lazily loaded like this:
{
path:'lazy',
loadChildren:
'./lazy/lazy.module#LazyModule'
}
Within the lazy
module, there are several routes defined:
const routes = [
{
path: '',
component: LazyComponent
},
{
path: 'faq',
component: FaqComponent
},
{
path: 'details',
component: DetailsComponent
},
]
Currently, I can only access the routes of the lazy loaded module by using /lazy/faq
or /lazy/details
. However, I would like to access these routes directly without the route prefix lazy
, like /faq
and /details
.
Is it possible to achieve this? I have not found a solution yet.