Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
543 views
in Technique[技术] by (71.8m points)

ui-router 可以多个状态共享一个控制器和视图模板么

例如左边一个列表,我切换列表项是右边的内容进行切换,右边的内容格式相同。
我知道ng-router可以用list/:type来实现多个路由匹配一个控制器和视图
所以想问下UI-router可以实现这种效果么 如果内容只用一个控制器的话


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

通过ui-sref="statu({键值对传参})" 解决了该问题


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...