1. 13
    Preserve the current route’s query parameters when navigating with the Angular Router
    2m 55s

Preserve the current route’s query parameters when navigating with the Angular Router

Share this video with your friends

Send Tweet

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].