angular2 rc6:类型RouterState上不存在属性queryParams [英] angular2 rc6: Property queryParams does not exist on type RouterState
本文介绍了angular2 rc6:类型RouterState上不存在属性queryParams的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在进入角度2决赛的道路上出现了另一个过时错误".
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?
RouterState类型上不存在属性queryParams
Property queryParams does not exist on type RouterState
推荐答案
我认为它已解决:属性"queryParams"现在位于Routerstate的属性"root"上:
Think I solved it: The property "queryParams" is now on the property "root" of the Routerstate:
this.router.routerState.root.queryParams
这篇关于angular2 rc6:类型RouterState上不存在属性queryParams的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文