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)">
|
<code-example header="In the component (excerpt)">
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.activatedRoute.queryParams.subscribe(params => {
|
this.route.queryParams.subscribe(params => {
|
||||||
this.name = params['name'];
|
this.name = params['name'];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user