I am new to angular. I am using a service which gets a list of objects and displays them on the 1st page. Then based on what object was clicked, I am setting the tab header
The best practice to handle these kind of scenarios is through combination of angular service + localstorage
And if the data is just the id in url then answer by @Michal Stefanow is fine also.
Helping link