Answer the question
In order to leave comments, you need to log in
firebase how to get data in js?
Hello I am trying to get data from Firebase. I get the data, but I can't do anything with it.
Here is the data I am getting Data Retrieval
Function
function readdata() {
var data = [];
firebase.database().ref("/polygons/").once("value", function(polygons) {
polygons.forEach(function(p) {
data.push([p.val().color, p.val().email, p.val().polygon]);
});
});
return data;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question