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:
parent
7addc9f1a9
commit
2cddeabce0
|
@ -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'];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue