0
身份驗證正常運行,但是一旦我登錄,它就會繼續處於相同視圖。使用Firebase和Ionic登錄Facebook後重定向視圖
我需要登錄之後他去查看dash.html
正如我重定向後,他登錄用戶?
$scope.loginFacebook = function(){
var ref = new Firebase("https://<NAME>.firebaseio.com");
var authObject = $firebaseAuth(ref);
authObject.$authWithOAuthRedirect("facebook").then(function(authData) {
console.log(authData);
}).catch(function(error) {
console.log('error' + error);
})
}
試過'$ location.path('myRoute')'? –
謝謝!但是我使用了'$ state.go('myRoute');' –