Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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');
   });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #pass #multiple #route #parameters
ADD COMMENT
Topic
Name
2+9 =