I have two routes in my appilcation
{path: 'activity/?cInfo=askjdfkajsdfkasd', component: PostComponent},
{path: 'activity/:id', component: PostDetailComponent}
What i have to do to make them work?
Route with querystring ?cInfo=askjdfkajsdfkasd should go to PostComponent
and Route like activity/skjdfhakjdfhaajsdf should go to PostDetailComponent
i tried
{path: 'activity/?cInfo=askjdfkajsdfkasd', component: PostComponent,canActivate:[CheckForListPage],pathMatch:'full'},
{path: 'activity/:id', component: PostDetailComponent,canActivate:[CheckForDetailPage]}
but each time 1 is called. The guards are returning boolean.
Does angular differentiate between queryParams and pathVariables like most MVC do?