Hi!
How can i send params using navigateForward ??
this.navController.navigateForward(‘my-page’);
Regards!
Hi!
How can i send params using navigateForward ??
this.navController.navigateForward(‘my-page’);
Regards!
this.navController.navigateForward(‘my-page’,{Key:Value});
Works for Ionic <= 3 But in Ionic 4, second param is a boolean type
With Ionic 4, if your app uses angular (default), you would have to use Angular’s native routing module. This guide explains how to use it. A little more tedious than Ionic 3’s NavController, but it works well.
thanks!, I’ll try it
let navigationExtras: NavigationExtras = {
state: {
user:p,
shopid:this.shopid,
section:this.section,
}
};
this.navCtrl.navigateForward(['personprofile'], navigationExtras);
RECEIVE SECOND PAGE
this.route.queryParams.subscribe((params) => {
let navParams = this.router.getCurrentNavigation().extras.state;
console.log(navParams);
});