Is it possible to send a variable that contains an array of id in a url from one component to another in Angular?
What I try to do is modifying the variable dynamically because I do not start how many ids to send and once I finish sending the variable with the array of ids through the url to the other component, and then from that other component retrieve the array of ids with a .split
or something similar.
Let's imagine that we already have the variable with the ids array
var array = [1,2,3,4,5]
I need to send it through a URL to the other component and then retrieve it to work with the ids.
Something like this: url_del_sitio/
and then send my variable array