http params angular 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: router params angular
// Navigate and send Params
this.router.navigate(['/users/edit/', user.id]);