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

Popular posts from this blog

php - Auto increment employee ID -

php - isset function not working properly -

python - Evaluating the next line in a For Loop while in the current iteration -