返回页面的相关代码如下:
this.navCtrl.getPrevious().data.myNewKey = someData;
this.navCtrl.pop();
上一页的相关代码如下:
ionViewWillEnter() {
this.myNewData = this.navParams.get('myNewKey')|| null;
}
以上即可实现navCtrl.pop传递参数
转子:http://www.egtch.com/archives/tag/navctrl