Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

firebase read data javascript

var starCountRef = firebase.database().ref('posts/' + postId + '/starCount');
starCountRef.on('value', (snapshot) => {
  const data = snapshot.val();
  updateStarCount(postElement, data);
});
 
PREVIOUS NEXT
Tagged: #firebase #read #data #javascript
ADD COMMENT
Topic
Name
3+7 =