javascript - Why firebase database now returns null when used to work great? -
i have firebase web app used read , write firebase database fine. of week same code:
var ref = new firebase ('https://myapp.firebaseio.com/web/data'); ref.child(id + "/slot" + timeslot + "/vote").on("value",function(snapshot){ console.log(snapshot.val()); // returning null sval = (snapshot.val());
now returns null
sval
.
can please explain 1.why , 2.what should it? thank you.
Comments
Post a Comment