Loosing navParam variable [SOLVED]


#1

Hi all,

I have three pages:

  1. On First page click the button and navigate to Second page where I get
    this.barcode = navParams.get('barcode');

On the Second Page I use this.barcode to show the appropriate content.

  1. On Second page click button and navigate to the Third Page.

  2. Click button on the Third Page to return to the Second Page (not the “Back” button, but my custom one) => and I have an error related to this.barcode, which is obviously undefined.

What’s the best way to fix this issue? I need the this.barcode on the Second Page to be “saved”, so when returning from the Third Page, it’s still there.

Regards,
Olga


#2

Ok. I’ve found the solution here:

Scroll to sgotre commented on Sep 10

Solved!