Skip to content

Instantly share code, notes, and snippets.

@Darmaal
Created November 15, 2017 06:53
Show Gist options
  • Save Darmaal/f7419aa12859860cf06f8a5eecc5fb26 to your computer and use it in GitHub Desktop.
Save Darmaal/f7419aa12859860cf06f8a5eecc5fb26 to your computer and use it in GitHub Desktop.
var dbRef = firebase.database().ref();
dbRef.child("Users").on("child_added", snapo => {
var names = snapo.child("name").val();
var genders = snapo.child("gender").val();
console.log("found : " + names);
$("#table_body").append("<tr><td> " + names + "</td><td> " + genders + "</td><td><button>Remove</button></td></tr>");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment