Answer the question
In order to leave comments, you need to log in
How to fix nested routing?
Please help me fix the routing. I have 3 components: app, mainLayout, hello. I would like to make the template of the app component contain only:
and the routes would be described by the following rule:<router-outlet></router-outlet>
const routes: Routes = [
{
path: '',
component: MainLayoutComponent,
children: [
{
path: 'hello',
component: HelloComponent
}
]
}
];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question