Page 1
constructor(public nav: NavController){}
pushToNextScreenWithParams(pageUrl: any, params: any) {
this.nav.navigateForward(pageUrl, { state: params });
}
Page 2
constructor(public router: Router){
if (router.getCurrentNavigation().extras.state) {
const pageName = this.router.getCurrentNavigation().extras.state;
console.log(pageName)
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…