I have the following code to grab data and view it in the console from a firebase setup, I have no idea why it isn't working. Here is my code below. It is running live at this site if you want to inspect it. Here is a link to a jsfiddle
<!doctype html>
<html lang="en" ng-app="DemoApp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type='text/javascript' src='https://cdn.firebase.com/js/client/1.0.11/firebase.js'></script>
<script type="text/javascript">
var dataRef = new Firebase('https://edengarden.firebaseio.com/test');
dataRef.on('value', function(snapshot) {
console.log(snapshot.val());
});
</script>
</head>
<body>
</body>
</html>
child_added, while the code in the question listens forvalue. Please make sure to have a single, consistent SCCE between them. But in general: listen forvalueon "regular" objects and listen forchild_addedwhen you have a list-like Firebase-ref, one that youpushchildren to. I would recommend against mixing the two.