lunes, 15 de marzo de 2021

ROUTES

https://experienceleague.adobe.com/docs/experience-manager-learn/spa-angular-tutorial/navigation-routing.html%3Flang%3Dde#update-the-header-component final!!!


 https://www.aanchalgarg.com/2019/09/routes-with-multiple-and-query.html


https://stackoverflow.com/questions/36320821/passing-multiple-route-params-in-angular2



SELECCCIONADA:

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

https://stackoverflow.com/questions/58077240/how-to-get-multiple-ids-from-route-param-in-angular-6

No hay comentarios: