angular.js - Can ui-router share a controller and view template with multiple states?
我想大声告诉你
我想大声告诉你 2017-05-15 17:14:08
0
2
653

For example, if there is a list on the left, when I switch the list items, I switch the content on the right, and the content on the right has the same format.
I know that ng-router can use list/:type to implement multiple routes matching one controller and view
So I would like to ask if UI-router can achieve this effect if the content only uses one controller

我想大声告诉你
我想大声告诉你

reply all(2)
左手右手慢动作

This problem was solved by ui-sref="statu({key-value pair parameters})"

迷茫

Yes, when you configure routing, just use the same template and controller for different states

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template