angularjs - Is it possible to have ui-views for non-nested states? -
say i've got state1
has children state1.child1
, state2.child2
. there's state2
has state2.child1
, state2.child2
. there way can put ui-view
in state1.child1
view state2.child1
?
the answer no (as expected).
states hierarchical, , same applies views. so, cannot display child of 1 hierarchy in another's hierarchy parent.
in case, wanted reduce amount of code (declaring same views , substates in different hierarchies) can use e.g. decorators:
Comments
Post a Comment