I have setup my Angular component with a button that triggers an event. Inside this event, I currently have:
this.router.navigate('page2')
While I am aware that query parameters can be passed inside the URL, I am faced with the challenge of passing a list of strings to the new page. Typically, if I had to open page2 with just one entity to query, I would use:
url.../page2/entity1
However, in my scenario, I need to send multiple entities (such as entity2, entity3, and entity4) to page2 without using query parameters since there could potentially be hundreds or even thousands of them!
So my question is, what is the most efficient way to pass these elements to another page using routing? I want to ensure that even if I pass multiple parameters without including them in the URL, I don't lose the results upon refreshing the page. Is there a solution for this?