From 2cddeabce0ecda5ab10e833f1c770e309f45900a 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 (#36905) This commit fixes the routing variable in the `ngOnit` life-cyle event from `activatedRoute` to `route`. Closes #36885 PR Close #36905 --- 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 3760fe0457..1755434252 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']; }); }