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
This commit is contained in:
Sonu Kapoor 2020-05-03 21:16:39 -04:00 committed by Misko Hevery
parent 7addc9f1a9
commit 2cddeabce0
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ To get information from a route:
<code-example header="In the component (excerpt)">
ngOnInit() {
this.activatedRoute.queryParams.subscribe(params => {
this.route.queryParams.subscribe(params => {
this.name = params['name'];
});
}