I am using Firebase with Ionic Framework.I am Fetching the Record using this code:
var ref = new Firebase("https://blazing-fire-2739.firebaseio.com/new");
  var arr=[];
      // Retrieve new posts as they are added to our database
        ref.on("child_added", function(snapshot, prevChildKey) {
        var newPost = snapshot.val();
       //console.log(newPost);
         arr.push(newPost.data);
        //console.log("Author: " + newPost.data.email);
        //console.log("Title: " + newPost.date_of_birth);
       // console.log("Previous Post ID: " + prevChildKey);
      });
     $scope.datas = arr;
     console.log($scope.datas)
It will print something like:
[]
0 =>Object { email="kk@gmail.com",  firstname="karan",  lastname="sofat",  more...}
1=>Object { email="jj@gmail.cpm",  firstname="jyotsna",  lastname="kaushal",  more...}
I am Showing in View File:
<div class="item item-button-right" ng-repeat = "x in datas" >
   {{x.email}}
  </div>
This will does not print anything
 
     
    