I have this routes:
const appRoutes: Routes = [
{
path: '',
component: UsersComponent,
children: [
{
path: 'todos/:id',
component: TodosComponent
},
{
path: 'todos/:id',
component: PostsComponent
}
]
}
];
the TodosComponent its working, but the PostsComponent doesn't. I want that I am routing to 'todos/:id' the two components will open side by side.
idto child components. And your routing should change to point to the parent component.