ask for a fix.
I have a login controller which actually does login the user just fine. but
requires a page refresh to show tht the use is logged in... logging out
updates the UI just fine... loggin in does not.
Here is the controller I am using... this is one of many iterations so far
to get his working. ANY help is appreciated
.controller('LoginCtrl', function($scope, $timeout, $ionicModal, Auth) {
// Auth
$scope.auth = Auth;
$scope.user = $scope.auth.$getAuth();
$scope.login = function(provider) {
$scope.auth.$authWithOAuthPopup(provider, function(error, authData) {
$scope.$apply(function() {
$scope.user = authData.auth.$getAuth();
});
});
};
$scope.logout = function() {
$scope.auth.$unauth();
$scope.user = $scope.auth.$getAuth();
};
})
--
You received this message because you are subscribed to the Google Groups "Firebase + AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-angular+unsubscribe@googlegroups.com.
To post to this group, send email to firebase-angular@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-angular/5f32358b-98cf-4c82-bfa8-f82f5b55c1c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.