Skip to main content
edited title
Link
Dani
  • 4k
  • 5
  • 50
  • 114

Sending params when dismissingin pop/dismiss

Source Link
Dani
  • 4k
  • 5
  • 50
  • 114

Sending params when dismissing

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