Angular2 rc6: Params property request does not exist in RouterState type

Another “Cancel-now-Error” error on the way to the angular 2 finale.

The error message is clear, I just need to know what is now called by the corresponding field. Is anyone

Property Request Params Does Not Exist in RouterState Type

+4
source share
2 answers

I think I solved it : the "queryParams" property is now in the "root" property of Routerstate:

this.router.routerState.root.queryParams
+11
source

You are probably using:

router: Router

You can change this to:

activatedRoute: ActivatedRoute

Then to access the queryParams parameters:

this.activatedRoute.queryParams
+9
source

Source: https://habr.com/ru/post/1653763/


All Articles