i am trying to navigate to my child defined component but my router is not recognizing the given route.
route is like as follow :
in Router file i have defined something like this:
const routes: Routes = [
{
path: "",
redirectTo: "products",
component: StandardproductsComponent,
pathMatch: "full",
canActivate: [AuthorizedGuardService],
},
{
path: "products",
component: StandardproductsComponent,
resolve: {
loaded: StandardsResolver
},
children: [
{
path: ":productId/types",
component: StandardtypesComponent,
// resolve: {
// loaded: StandardTypesResolver
// },
// canActivate: [AuthorizedGuardService]
}
]
}];
i won't able to do so like this way can anyone help me with this how can make my route workable. i want to have route like this : v3/products/{productId}/types
v3in your example route get defined?