I would like to have more experienced and intelligent help from you.
I’m developing an app where it’s almost all assembled from data from an API on an external server, fetching information from an Oracle from a client.
After login, I have in HomePage the ngInit function that searches the data in this external API.
When I navigate in other pages of the app and I go back to HomePage, I have to keep searching the data again, because it seems that when leaving the HomePage the data loaded in the variables previously empty.
Is there a smarter way to do this, that is, not be calling the API every time you log in to HomePage?
please follow the Tour of Heroes app to understand the basics