场景:视图层级以下git
view1github
--view11dom
--view111mvvm
需求:view11的一个动做事后,单独刷新view12ide
解决方式:修改层级设计ui
view1this
--view11设计
--view111code
结论:ui router不支持同级别views单独刷新, ui router 原则是经过state控制视图,不要直接控制viewsrouter
这个设计和只能更新mvvm scope的变量,尽可能不要操做dom元素同样,我的认为是很2..........
个人场景view11并行的有不少view13 view14 view15 view16,每一个都有操做刷新view12,
按state更新的话,路由要从新嵌套,每一个下面都要嵌套view111,麻烦的很。。。
The answer is - hierarchy should be built from states, not via views.
You should really study the doc (which is pretty clear, short and easy to read)
And then maybe follow this:
to see, that we can
resolves
) - without reloading its parentSo, the answer should be
split your hierarchy into state hierarchy, not view. Navigate to and among children to change the child views... while profit from parent stable views
Check the plunker here