Answers for "How to pass multiple route parameters in Ionic-Angular?"

0

How to pass multiple route parameters in Ionic-Angular?

{
path: 'page1/:id1/:id2',
loadChildren: () => import('./pages/page1/page1.module').then(m => m.Page1PageModule)
},
Posted by: Guest on March-18-2022
0

How to pass multiple route parameters in Ionic-Angular?

import { ActivatedRoute, Router} from '@angular/router';

..
constructor(private route : ActivatedRoute, private router : Router){}

ngOnInit() {
   this.route.paramMap.subscribe(params => {
      let id1 = params.get('id1');
      let id2 = params.get('id2');
   });
}
Posted by: Guest on March-18-2022
0

How to pass multiple route parameters in Ionic-Angular?

<ion-item button [routerLink]="['/', 'page1', id1,id2]" >Go to Page1 </ion-item>
Posted by: Guest on March-18-2022

Code answers related to "How to pass multiple route parameters in Ionic-Angular?"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language