Going through the Angular documentation for URLSearchParams, I dint find any documentation on passing array as an parameter.
Can anybody help with that?
In fact, you can't pass an array directly but you can use several times the append
method:
let params = new URLSearchParams();
params.append('arrayparams', 'val1');
params.append('arrayparams', 'val2');
params.append('arrayparams', 'val3');