我在我的项目 app.routing.ts 中使用嵌套延迟加载
const routes: Routes = [
{ path: '', loadChildren: './user-panel/user-panel.module#UserPanelModule' },
];
export const Routing: ModuleWithProvidButers = RouterModule.forRoot(routes);
和我的 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);
但是当我使用子路由时,我收到了这个错误
ERROR RangeError: Maximum call stack size exceeded