In the current version, when I switch, say the state is 'a' to indicate 'b', and then go back to 'a', the template for 'a' is redrawn instead of restoring the template. The result is that user data in pattern "a" is lost as soon as I switch from "a".
(the problem exists for the angular built-in routing service).
Now this is the only reason I would not want to have a ui-router (everything else is fantastic), because this behavior does not correspond to one of our most important use cases. Also for me personally this does not seem to be the most logical behavior.
I wanted to know if there is a way to achieve this using the built-in.
(I was able to get this behavior after several hacks in the source code.)
source
share