I've been experimenting with child routing in Angular and encountered some confusion.
Can someone explain the difference between the following two routing configurations?
{path:'products',component:ProductsComponent,children:[{path:'details/:id',component:ProductDetailsComponent}]}
and
{path:'products',component:ProductsComponent},
{path:'products',children:[{path:'details/:id',component:ProductDetailsComponent}]},
The first one seems to change the URL but doesn't navigate to the ProductDetailsComponent. However, the second configuration works as expected and takes me to the ProductDetailsComponent.
I'm working on implementing children routing in angular 17 and would appreciate any insights or clarifications.