In Angular 2 I would like to define two routes, which use the same Component, but one route being a special case using a special preset parameter. Now what I want to do is his:
@RouteConfig([
{ path: '/', name: 'Home', component: HomeComponent },
{ path: '/user/:id', name: 'User', component: UserComponent },
{ path: '/special-user', name: 'User', component: UserComponent, params:{'userId':'123'} },
])
The thing I need is "params" in the last route-definition to "/special-user". Is this possible at all?
Edit: in the path /user/:id the id is part of the url, but in the special-user-case I would like for the id to be invisible and not to be part of the url