I have three pages:
- 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.
On Second page click button and navigate to the Third Page.
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.