I have two components in my application - MasterComponent and DetailsComponent
On clicking an option in MasterComponent, it is routed to DetailsComponent, also I need to pass some dynamic objects to DetailsComponent. As far as I understand there are few ways to achieve this
1] Using router params
I can't pass objects using router params, only strings because it needs to be reflected in the URL.
2] Using shared service
We can pass complex objects through a shared service but on reloading the page the data in the service is cleared. I need data to be persisted on page reload.
Is there any other way to pass dynamic complex data to routed Component? Any help is appreciated. Thanks.