I'm using nested lazy loading in my project app.routing.ts
const routes: Routes = [
{ path: '', loadChildren: './user-panel/user-panel.module#UserPanelModule' },
];
export const Routing: ModuleWithProvidButers = RouterModule.forRoot(routes);
and my user-panel.routing.ts
const routes: Routes = [
{
path: '',
component: UserPanelComponent,
children: [
{ path: '', loadChildren: './pages/home/home.module#HomeModule' },
]
}
];
export const Routing: ModuleWithProviders = RouterModule.forChild(routes);
But when i use child routing i'm getting this error
ERROR RangeError: Maximum call stack size exceeded