non-nested 状态可以有 ui-views 吗?

Is it possible to have ui-views for non-nested states?

假设我有 state1,其中有 children state1.child1state2.child2。还有 state2,它有 state2.child1state2.child2。有什么办法可以在 state1.child1 中放入 ui-view 来查看 state2.child1?

答案是(最有可能的预期)

国家是分等级的,这同样适用于他们的观点。因此,我们无法在另一个层次结构父级中显示一个层次结构的子级。

如果我们只是想减少代码量(在不同的层次结构中声明相同的视图和子状态),我们可以使用例如一些装饰者: