From 1185aa07a36bc4c13bfcb51d7fc640abad8b09bb Mon Sep 17 00:00:00 2001 From: Ajit Singh Date: Mon, 15 Jun 2020 20:23:50 +0530 Subject: [PATCH] docs: wrong example in routerLink (#37590) In routerLink if a fragment is added than fragment example shows that it is added before the params '/user/bob#education?debug=true' but actually they are added after that '/user/bob?debug=true#education' changed documentation to show correct example Fixes #18630 PR Close #37590 --- packages/router/src/directives/router_link.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/router/src/directives/router_link.ts b/packages/router/src/directives/router_link.ts index e030ee8188..740c4e9d2c 100644 --- a/packages/router/src/directives/router_link.ts +++ b/packages/router/src/directives/router_link.ts @@ -52,7 +52,7 @@ import {UrlTree} from '../url_tree'; * link to user component * * ``` - * RouterLink will use these to generate this link: `/user/bob#education?debug=true`. + * RouterLink will use these to generate this link: `/user/bob?debug=true#education`. * * (Deprecated in v4.0.0 use `queryParamsHandling` instead) You can also tell the * directive to preserve the current query params and fragment: