Answer the question
In order to leave comments, you need to log in
Angularfire, What's up with $requireAuth() in Firebase 3?
I use $routeProvider, in which I want to prohibit navigation along the route if the user is not authorized, but it gives me AuthenticationFactory.getRequire(...).$requireAuth is not a function
resolve: {
'currentAuth' : function(AuthenticationFactory){
return AuthenticationFactory.getRequire().$requireAuth();
}
}
var firebaseAuthObject = $firebaseAuth();
function getRequire(){
return firebaseAuthObject;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question