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)?

  •  { path: ‘user/:id’, component: UserDetailComponent }
  •  { url: ‘user/:id’, routedComponent: UserDetailComponent }
  •  { routedPath: ‘user/:id’, component: UserDetailComponent }
  •  { destination: new UserDetailComponent(), route: ‘user/:id’ }

Leave a Reply

Your email address will not be published. Required fields are marked *