updateParams(newParams);
Causes $route service to update the current URL, replacing current route parameters with those specified in newParams. Provided property names that match the route's path segment definitions will be interpolated into the location's path, while remaining properties will be treated as query params.
Parameters
Param Type Details newParams !Object<string, string> mapping of URL parameter names to values