- { path: ‘user/:id’, component: UserDetailComponent }
- { url: ‘user/:id’, routedComponent: UserDetailComponent }
- { routedPath: ‘user/:id’, component: UserDetailComponent }
- { destination: new UserDetailComponent(), route: ‘user/:id’ }
How would you configure a route definition for a UserDetailComponent taht supports the URL path user/23 (where 23 represents the id of the requested user)?
June 25, 2021June 25, 2021
0 Comment