I need a clue. How can I store data downloaded from the API?
All data downloading functions can be found in Service
I have several components
- In one component I have a button that calls for downloading data from the API (Service injected through the constructor)
Where should this data be saved so that other components can use it?
If I return a value in the component in which the button was pressed from the data retrieval function, then only in this component I will have this data.