Angular ui-router $state.go is not redirecting inside resolve

后端 未结 6 962
刺人心
刺人心 2021-02-05 04:57

In my angularjs app, I am checking if user lands on landing page and is already authenticated, then redirect him to home page.

.state(\'landingpage\', {
                 


        
6条回答
  •  感情败类
    2021-02-05 05:28

    This is an old thread, but I use $location.path() to accomplish redirection inside of a state.resolve() block

提交回复
热议问题