pass value as queryParams in angular 10 code example
Example 1: queryparams angular
goProducts() {
this.router.navigate(['/products'], { queryParams: { order: 'popular', 'price-range': 'not-cheap' } });
}
Example 2: queryparams angular
goProducts() {
this.router.navigate(['/products'], { queryParams: { order: 'popular' } });
}