Can ionic hide a page that resides in the background?

can ionic hide a page to the background and return the page without destroying it, just let him stay in the background and can call and modify the page at any time?
at present, I want to do a file upload and download transfer list, but when I return to the page, the page will be destroyed, and if I reopen it, I will reset the status. Is there a good solution?


I don't know if there is a permanent Ionic page, but there is another way of thinking.

put the upload and download operations in service (the version before ionic4 is called providers)

then read / save the current upload / download status in the hook of the component's life cycle , and then render it in the component.


your idea is still the way to operate dom. The essence of angular is still operational data. There are several steps divided into several sub-components. As long as your parent component data is not destroyed, it is up to you to switch the child components.

Menu