问题
Is there any way to dynamically set the parent state of a ui-router state at runtime?
I have a case where I need to set a different parent state, depending on whether or not the user is logged in. I have a service that I can use to fetch this authentication status.
来源:https://stackoverflow.com/questions/37759172/ui-router-dynamically-set-parent-state-at-runtime