angular route query params how to get code example
Example 1: angular http request query params
request(query) {
let params = new HttpParams().set("keyword", query);
return this.http.get(`Your_URL`, {params});
}
Example 2: in angular how to get router url without query params
this.router.url.split('?')[0]