I want to count the total data in a users profile in my firebase. Therefore I first get the profile as object:
var profile = $firebase(ref.child('profile').child(userId)).$asObject();
Now If I console.log this var there is this object:
I found some solutions to count the object with
console.log(Object.keys(profile));
But this gives me only the count 3. always:
Anyone got a solution how I can get the count of the data stored? There should be age, gender, place, realname, username = 5