Ui-Router $state.go inside $on('$stateChangeStart') is cauzing an infinite loop

前端 未结 6 1817
南方客
南方客 2020-12-03 10:52

I\'m trying to introduce login into the way the user navigates accross the application.

I pretend to redirect the user to the page were he was before he navigate to

6条回答
  •  难免孤独
    2020-12-03 11:46

    I simply used $location.path('every/where') instead of $state.go('every/where')

    :) .

提交回复
热议问题