0
I need to maintain the state of a component even after navigating from one route to another or after closing the application.
I have a component where displays the duration of a call and the information related to the service, the duration of the call must be always running even after navigating from one route to the other or else close the application and open again.
The duration and information of the service must be maintained until I finish the service.
How can I do this in Angular?
I think it would be best to keep that state in a service then
– Eduardo Vargas
If I keep in service, when I close the application and open again you will no longer have the data there...
– Luiz Ricardo Cardoso