Question: How would you configure a route definition for a UserDetailComponent that supports the URL path user/23 (where 23 represents the id of the requested user)?
- `{ path: 'user/:id', component: UserDetailComponent }`
- `{ url: 'user/:id', routedComponent: UserDetailComponent }`
- `{ routedPath: 'user/:id', component: UserDetailComponent }`
- `{ destination: new UserDetailComponent(), route: 'user/:id' }`
Answer: The correct answer of the above question is Option A:`{ path: 'user/:id', component: UserDetailComponent }`