angular http request query params
snippet in javascript

angular http request query params

user2187

request(query) {
  let params = new HttpParams().set("keyword", query);
  return this.http.get(`Your_URL`, {params});
}