UI-Router dynamically set parent state at runtime

ぐ巨炮叔叔 提交于 2020-01-06 19:26:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!