javascript - How to listen for data changes at more than a particular location in Firebase? -


i using firebase real-time db mobile app i'm developing (js web sdk), structure below in screenshot, key = email, each key have mobile user information, , gps coordination of mobile location inside node = "path"

how listen on the "path" of emails (users)?

enter image description here

straight firebase documents:

value: read , listen changes entire contents of path.

var ref = firebase.database().ref("users"); firebase.database().ref().on('value', function(snapshot) {     // whatever }); 

this function run once when initiated , once more every change data under path. snapshot return contents of user/ lot of data returned every change. can change ref accordingly.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -