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 the 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 the HomePage, I have to keep searching the data again, because it seems that when leaving the HomePage the data loaded in the variables previously are empty.
Is there a smarter way to do this, that is, not be calling the API every time you enter HomePage?