-
Notifications
You must be signed in to change notification settings - Fork 210
sticky child state gets lost when returning to its parent from other than the child #212
Comments
Did you try deep state redirect? |
Putting a deepStateRedirect on parent1 from the debug info, the inactive states list shows:
It seems the problem is when entering parent state from a state other than its child states, it forgets its sticky child states |
hmm I have similar problem after upgrade to 0.0.14 |
I am having similar problem only when i enable futureState together with stickyState. |
This is confirmed as a bug. Given a sticky state with a sticky substate
There is a difference in how a sticky substate (A.1) is handled when:
The docs say that the sticky state DOM/controller is retained until the parent to the sticky state is exited. This statement is not precisely followed, as the two bullet points above demonstrate. I am going to change the expected behavior to the following statement: BC-BREAK
another way to phrase that is:
This is a BC-BREAK from 0.0.14, but it is more internally consistent and consistent with the intention of sticky states. OP, if you want control over how
|
updated plunk with ui-router-extras 0.0.15-pre3 |
The situation is like this:
I have 3 states(all sticky):
parent1
parent1.child1
parent2
steps:
-> child1 -> parent2 -> parent1 , this causes child1 to disappear and re-access child1 will cause re-initialising the scope, which is not wanted
plunkr:
http://plnkr.co/edit/tnjbOn97BHCkNy3DLa4M?p=preview
Is it a bug? Is there any way to remember child1 once it is accessed? Thx
The text was updated successfully, but these errors were encountered: