0

I already test this code

let params = new HttpParams();

params.append('someParmName', 'value1');
params.append('someParmName', 'value2');

I would like this type of url on a method GET to send for the backend

url: ?someParmName=value1&someParmName=value2

But i have this: ?someParmName=value1 http.get();

1 Answer 1

1

Try this:

params = {someParmName: ['value1', 'value2']};
http.get('...', {params})
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.