Can you help me understand how params work with the get method? I currently have this code snippet:
path = 'https://example.com/api';
const params = new HttpParams();
params.append('http', 'angular');
return this.http.get(path, {params: params});
I was expecting the URL to look like this:
www.example.com/api?http=angular
However, when I check the network tab in Chrome, the request URL shows:
www.example.com/api
How can I achieve the desired path: www.example.com/api?http=angular Also, is there a way to check the request URL of the used method without using Chrome? Perhaps within the service where the method is used?