Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70432

$stateChangeError TypeError: Auth.getAuthState is not a function(…)

$
0
0

@jesst446 wrote:

the browser is blank and displaying this error does anyone know what it means and how to fix it?

$stateChangeError TypeError: Auth.getAuthState is not a function(…)

the code i have is the following:

// Redirect the user to the login state if unAuthenticated
$rootScope.$on('$stateChangeError', function(event, toState, toParams, fromState, fromParams, error) {
console.log("$stateChangeError", error);
event.preventDefault(); // http://goo.gl/se4vxu
if(error == "AUTH_LOGGED_OUT") {
$ionicHistory.nextViewOptions({
disableAnimate: true,
disableBack: true
});
$state.go('tab.account');
}
});
})

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>