I want to pass data to the next page, using :
this.navCtrl.push(NextPage, { data : somedata}
But I also want to make NextPage the rootpage using setRoot :
this.navCtrl.setRoot(NextPage);
Unfortunately, I don’t know how to do both. My current work around with a promise doesn’t pass the data to the next page, but only makes it the root :
this.navCtrl.push(NextPage, { data : somedata}).then(()=>{
this.navCtrl.setRoot(NextPage)
};
So anyone, how can I do both? Please help me find a work around