To route a user to his/her proper page after a successful login, you could do something like this
firebaseapp.controller('LoginController', ['$scope', 'Authentication', function($scope, Authentication) {
$scope.login = function() {
Authentication.login($scope.user).then(function(){
if(typeOfUser === "Admin"){
}
if(typeOfUser === "Guest"){
}
});
};
}]);
Diego Bernal
Front-End Engineer
Although not complete, here is a good start: dzone.com/articles/firebase-authentication-using-…