I'm having troubles with nested routes. Here's my situation:
Routing:
RouterModule.forRoot([
{
path: 'workerevaluation', component: MainComponent, children: [
{
path: 'details/:code', component: EmployeeDetailComponent, children: [
{ path: '', component: EmployeeTableComponent },
{ path: 'evaldetail/:evalid', component: EmployeeEvaluationDetailComponent }
]
}
]
},
]),
inside EmployeeTableComponent i have a button with a (click) that should redirect me to the 'evaldetail/:evailid' but it throws me this error:
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'https:/localhost:44352/workerevaluation/details/W002/evaldetail/EVAL123'
It seems to not be recognizing the 'details/:code' subpath.
Any suggestion?