setSearchParamsHandling()
ts
function setSearchParamsHandling(strategy: SearchParamsHandling): void;Sets the strategy for handling search parameters when navigating.
Parameters
strategy
SearchParamsHandling
Defines how to handle search parameters when navigating.
replace: replaces the current search parameters with the new ones.preserve: merges the new search parameters with the existing ones.
Returns
void