Angular4: Http -> HttpClient - requestOptions
Try this:
const requestOptions = { params: new HttpParams()};requestOptions.params.set('foo', 'bar');this.http.get(environment.api+ '.feed.json', requestOptions );
Here is also the link to the docs describing how to do that with examples for headers and URL Parameters: HttpClient