-
Notifications
You must be signed in to change notification settings - Fork 3k
$state.go with notify: false option error #2457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 |
1 similar comment
+1 |
I apologize, but we're not going to be addressing any To be clear, |
See #1758 |
I've got a controller ListCtrl and there is something like
$state.go($state.current.name, {page: $scope.currentPage}, {reload: false, notify: false}); (used for the pagination).
The problem is that ListCtrl controller is being called after changing the state to another (i.e. not $state.current).
Changing notify to true fixes an issue, but destroys my pagination logic.
I've found a temporary solution: set some var on
$stateChangeStart
to true and to false on$stateChangeSuccess
, then use in a controller like$rootScope.stateChanging || init();
. It works but seems strange to me.Is there something I'm doing wrong or it's a bug?
The text was updated successfully, but these errors were encountered: