can somebody tell me how correct to set up routing when using multiple modules in my project? I have app.module and courses.module with some components declared in. I want t
app.routing.module.ts
const routes: Routes = [
{
path: '',
children: [
{ path: 'courses', loadChildren: './components/courses/courses-routing.module#CoursesRoutingModule' }
]
}
];
courses.routing.module.ts
const routes: Routes = [
{
path: '',
children: [
{ path: 'list', component: CoursesListComponent}
}
}
];
I would do it this way. Give it a try yourself and see how it goes.