In my Angular 12 application, I have an array of objects that I need to convert into query parameters in order to route to a generated URL. The desired query parameters should look like this:
Brand:ABC:Brand:XYZ:Size:13x18:Size:51x49x85
[{
"values": ["ABC", "XYZ"],
"show": true,
"label": "Brand",
}, {
"values": ["13 x 18", "51x49x85"],
"show": true,
"label": "Size",
}]
I attempted to achieve this but the result was not as expected.
params = new HttpParams({fromObject: { r: myArray }})
Is there something that I am missing?