I've got 3 routes. When I move from 1st to 2nd I need to pass a parameter:
this.navCtrl.push(ReadyPage, { newGame: true });
But I also need to pass sometimes this parameter as well when I moving from 3rd to 2nd.
I'm trying with this but doesn't work:
this.viewCtrl.dismiss({ newGame: true });
Comparing both methods dismiss
doesn't seem to have that option (unless it's called data
instead params
):
abstract push(page: Page | string, params?: any, opts?: NavOptions, done?: TransitionDoneFn): Promise<any>;
dismiss(data?: any, role?: string, navOptions?: NavOptions): Promise<any>;