I\'m trying to figure out how to use the Angular2 router navigation (router 3.0.0-alpha.7) with query parameters.
I can easily navigate to a route with a queryParam
I struggled with this as well. You would expect the router to clear query params by default when navigating to another route...
You can do either
this._router.navigate(['/route1'], {queryParams: {}});
or
this._router.navigateByUrl('/route1');
or when using routerLink
:
Applications