It's possible in angular to save the context of a page ?
I will explain :
I have a page with a component
/cars
This page contains a list of cars got from an $http request to the server
Car 1 (click to see details)
Car 2 (click to see details)
Car 3 (click to see details)
Car 4 (click to see details)
When I click on a car I am redirected to a new page (the detail of selected car)
/details/1 // 1 is the id of a car
And if I go back to the list of cars, the component will send an $http request again to get the list of cars.
My question is, it's possible when I go back, to render the previous context without retrieving data from the server ?
One option is to use services to store data.
There is any better idea ?
(Jira and GitLab are using this UX behavior ...)
Thank you !