Created
November 15, 2017 06:53
-
-
Save Darmaal/f7419aa12859860cf06f8a5eecc5fb26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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