问题描述
在我的 ionic 应用程序 (3) 中,有一个后退按钮(navcontroller)。首先是一个信息页面,然后我去 编辑页面,我可以在其中编辑内容,然后单击后退按钮返回信息页面。一个参数从 Edit 页面传递到 Info 页面,但 Info 页面没有更新。任何人都可以帮助解决这个问题。 信息页面代码:
gotoSign(){
this.navCtrl.push('JiejiSignPage',{
item: this.item,callback: (data) => {
//get Edit page data
return new Promise((resolve,reject) => {
this.cdRef.detectChanges();
this.item = data;
resolve(null);
});
}
})
}
<img *ngIf="item.SignatureImageUrl!=undefined&&item.SignatureImageUrl!=null&&item.SignatureImageUrl!=''" style="width:100%" src="{{item.SignatureImageUrl}}"/>
let callbackFunc = this.navParams.get('callback');
let popData = {item: this.item};
callbackFunc(popData).then(()=>{
this.navCtrl.pop();
});
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)