I have a components which displays a list of users (UserListComponent) The model bound model is a list of user objects received by a userService using httpclient.
When user clicks on item (user) in the list a component (UserDetailsComponent) should open where to edit the user.
Therefore I want to pass the user objects to the detail component.
Normally, I would just pass an id of the route, use a guard and load the whole user object by that id using the userService.
In my special case we dont want a backend call and pass the object as it is without a backend call.
What is the best way to do it? Another shared service?