From ce8595eea2567e74237089375ae4706da54e226d Mon Sep 17 00:00:00 2001 From: Sonu Kapoor Date: Sun, 3 May 2020 21:16:39 -0400 Subject: [PATCH] docs: fixes `ngOnit` routing variable This commit fixes the routing variable in the `ngOnit` life-cyle event from `activatedRoute` to `route`. Closes #36885 --- aio/content/guide/router.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/guide/router.md b/aio/content/guide/router.md index 7ec04284d1720..907323e16af01 100644 --- a/aio/content/guide/router.md +++ b/aio/content/guide/router.md @@ -169,7 +169,7 @@ To get information from a route: ngOnInit() { - this.activatedRoute.queryParams.subscribe(params => { + this.route.queryParams.subscribe(params => { this.name = params['name']; }); }