本文介绍了Angular2:获取父路由器数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建下一个路由组件/布拉布拉/:ID /布拉布拉/:secondid
I'm creating a component under route /blabla/:id/blabla/:secondid
我的网址的第一部分。/布拉布拉/:ID / ...由我第一个路由组件管理
First part of my url "/blabla/:id/..." is managed by my first routing component.
然后,第二路由器管理地址的第二部分。
Then, a second router manages the second part of url.
在我的部分,我可以方便地访问我:在的RouteDatasecondid
In my component, I can easy access to my ":secondid" in RouteData.
但我不知道我怎么可以访问我的:从那里ID
But I wonder how I can access my ":id" from there.
任何想法?
推荐答案
通过第 ID
随着数据绑定。
这篇关于Angular2:获取父路由器数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!