Adir Zoari Adir Zoari - 1 year ago 107
Javascript Question

Get node of data from firebase

i'm trying to get data from firebase and i'm little stuck with that.
enter image description here

i'm trying to get the all SemaA data
i did it like that but it not give me nothing


i can specific to do (but i don't want it)


i also wnated to get the black sign and red sign in two different queries and run into loop to get the data from there
enter image description here

Answer Source

If you're looking to loop over the courses in a semester:

var semesterRef = firebase.database().ref('Courses/'+departmentId+'/SemA')
semesterRef.on('child_added', function(courseSnapshot) {
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download