How To Get The Value Of Children In Firebase Javascript?
This is my Firebase Database: I need the URLs of the images that are associated alongside the unique random name generated by the push method. Is there any way I could do that? Al
Solution 1:
This is the most basic way to show the list of image URLs:
var rootRef = firebase.database.ref();
var urlRef = rootRef.child("user1/DAA Notes/URL");
urlRef.once("value", function(snapshot) {
snapshot.forEach(function(child) {
console.log(child.key+": "+child.val());
});
});
Post a Comment for "How To Get The Value Of Children In Firebase Javascript?"