Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if item is already registered in angular angularfire site:stackoverflow.com

//every user must have an email
firebase.database().ref(`users/${userId}/email`).once("value", snapshot => {
   if (snapshot.exists()){
      console.log("exists!");
      const email = snapshot.val();
   }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #item #registered #angular #angularfire
ADD COMMENT
Topic
Name
7+8 =