Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

Stuck for 2 days now in this problem.

I have only userEmail in my FireBase and I've tried everything in the firebase doc but I can't seem to get only the emails/values in my firebase.

What I am trying to do is to see if the email already exist in the database. This is not for User so I am not using UserAuth.

I am using Ionic, Angular

Here's my Factory/Service

app.factory('FirebaseUsers', ['$firebaseArray', '$firebaseObject', function($firebaseArray, $firebaseObject) {
    var fireUsers     = new Firebase("https://blah.firebaseio.com");
    var usersArr      = $firebaseArray(fireUsers);
    var usersObj      = $firebaseObject(fireUsers);

    var FirebaseUsers = {
            all:    usersArr,
            al2:    usersObj
    };
    return FirebaseUsers;
}]);

My Firebase

blahblah:

-KJPNPaY-ijviTLCuYX6
 userEmail: "[email protected]",
 userPhone: "000000000000000"

-KJPQBYqE0QoWr5G47IC
 userEmail: "[email protected]"

How do I get only the userEmail OR a simple way to check if a certain email already exist in firebase?

also, why does the output of firebase comes with different functions and prototype?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.