Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple instances of Ionic pages #1

Open
EnzoMolion opened this issue Apr 8, 2018 · 1 comment
Open

Multiple instances of Ionic pages #1

EnzoMolion opened this issue Apr 8, 2018 · 1 comment

Comments

@EnzoMolion
Copy link
Collaborator

When a page is popped out of the navigation stack (via pop() or setRoot(page) methods), the instance of the page is deleted and one another is created when pushing it in the navigation stack. As a consequence, attributes of pages are reinitialised and that’s not the wanted behavior.

@EnzoMolion
Copy link
Collaborator Author

A simple fix exists:
Every data that needs to be kept between two views of a page has to be saved in an injectable provider. This injectable then must be accessed to get the needed page info.
For example, for QRCodeGenerationPage: create an injectable which as an AES from which access to recreate the QRCode to display to another user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant