Another "Deprecation-Now-Error" on the road to angular 2 final.
The error-message is clear, I just need to know what the corresponding field is called now. Anybody?
Property queryParams does not exist on type RouterState
Think I solved it: The property "queryParams" is now on the property "root" of the Routerstate:
this.router.routerState.root.queryParams
Probably u are using:
router: Router
You can change that to:
activatedRoute: ActivatedRoute
Then to access the queryParams:
this.activatedRoute.queryParams
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With