思路:
1、父组件在向子组件传递参数时,顺带将一个Promise回调传递进去
2、子组件在返回上一个页面前,先调用这一个Promise回调,向父组件传递参数
3、参数传递完后,才再调用then来执行pop弹出
优点:可用于回退时更新父组件状态;
缺点:难以复用;
具体参考:
https://www.jianshu.com/p/f8a357eff039
https://forum.ionicframework.com/t/solved-ionic-navcontroller-pop-with-params/58104
简单版的:
https://blog.csdn.net/ada19950118/article/details/78814932
https://www.cnblogs.com/hmake/p/7724016.html
Modal补充: