I am using angular 9 application.
I have a routing file with the below code :
{ path: 'a/:id', component: AComponent }, { path: 'a/b', component: BComponent }, { path: 'a/c', component: CComponent } I want to have the same route 'a' with query parameter id as well as appended routes (b & c)
When I am trying to navigate to 'a/b' OR 'a/c', the URL in the browser gets updated, however, it doesn't actually navigates to the desired route.
Is there any way to achieve this?
a/:idmatch all cases. If you really need this kind of routes, try to change the order of elements. The most generic rule should be last.watchthe route, check this out stackoverflow.com/questions/34444822/…