I have a situation where when i console.log a object it shows to be null but in the same time to have some properties in it.
I'm fallowing up this tutorial or in short:
.factory('Auth', function ($http, $q, $firebase, FBURL, $location, $firebaseSimpleLogin, $rootScope) {
var ref = new Firebase(FBURL);
var auth = $firebaseSimpleLogin(ref);
console.log(auth);
var Auth = {
signedIn: function () {
return auth.user !== null;
},
login: function (user) {
return auth.$login('password', user);
}
};
$rootScope.signedIn = function () {
return Auth.signedIn();
};
return Auth;
});
and i get this:

in this case, after authenticating, console.log(Auth.signedIn()); return false because the object in the log shows as null, but when i open to look inside i can see the properties
what is this?