Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Sending params when dismissing

$
0
0

@Xiwi wrote:

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>;

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>