When we redirect to a different route from within our component's code using the Router.navigate
or from within a component template via a [routerLink]
directive, we may want to preserve the current route’s query parameters and carry them on to the next route. In this lesson we'll learn about the router's preserveQueryParams
option as well as the [queryParams]
directive on the [routerLink]
.