How to pass multiple route parameters in Ionic-Angular? How to pass multiple route parameters in Ionic-Angular? How to pass multiple route parameters in Ionic-Angular?

The solution for “How to pass multiple route parameters in Ionic-Angular? How to pass multiple route parameters in Ionic-Angular? How to pass multiple route parameters in Ionic-Angular?” can be found here. The following code will assist you in solving the problem.

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’);
});
}Go to Page1 {
path: ‘page1/:id1/:id2’,
loadChildren: () => import(‘./pages/page1/page1.module’).then(m => m.Page1PageModule)
},

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in