I want to fetch multiples ids which I am passing while routing in Angular using route.params. This is the route.ts
{path:'section/:id/:id', component: SubsectionsComponent}
And this is how I am routing from a component.ts
onSectionClick(id1, id2){
this.router.navigate(['/path/',id1,id2], {relativeTo:this.route})
}
And this is how I am fetching in the component where it routes.
constructor(private route: ActivateRoute){}
this.route.params.subscribe(
(route)=>{
console.log(route)
}
)
But it is only logging one id from the params.