title: Connecting firebase to Angular JS - possible json issue
body: <p>The question is how to format firebase to work with angular. I have a view that works with ng as a static view. In the $scope it is defined like this </p>
  
  <pre><code>$scope.standardItems = [{
      name: "The Name",
      sizeX: 2,
      sizeY: 1,
      row: 0,
      col: 0
  }, {......etc
  </code></pre>
  
  <p>But if I try and supply data from firebase it does not work probably because the output is not formatted correctly. The connection seems fine and I can add data but firebase adds it own id. This is the how the data looks exported from the firebase console</p>
  
  <pre><code>{
      "-KdJVcYUXMfeym3jPy04" : {
      "att" : "grid",
      "col" : 0,
      "id" : 1487476528646,
      "name" : "This is a test grid",
      "row" : 0,
      "sizeX" : 2,
      "sizeY" : 1
  },
  </code></pre>
  
  <p>The extra parameters are not important but the nesting probably is. I have logged the out put of the firebase array using this</p>
  
  <pre><code>var todosRef = new Firebase('https://xxxxxxxxxx.firebaseio.com/');
  $scope.todos = $firebaseArray(todosRef);
  console.log($scope.todos);
  </code></pre>
  
  <p>And I get this in the chrome debug console</p>
  
  <pre><code>Array[0]
      0:Object
          $id: "-KjhbuvgtVvFUnbfbmj04"
          $priority:null
          att:"grid"
          col:0
          id:1487476528646
          name:"This is a test grid"
          row:0
          sizeX:2
          sizeY:1
      __proto__
  </code></pre>
  
  <p>Here is the important line from the view using angular ng-repeat</p>
  
  <pre><code>&lt;li gridster-item row="item.position[0]" col="item.position[1]" size-x="item.size.x" size-y="item.size.y" ng-repeat="item in todos"&gt;
      //..
  &lt;/li&gt;
  </code></pre>
  
  <p>My question is how do I pass to angular (the view) exactly what is being passed in the static example above from the controller? How can I "print" exactly what is being passed to angular from the array - the export from firebase console and chrome log console are not totally the same. It does not help that all the parent nodes are unique non sequential IDs such as -KdJVcYUXMfeym3jPy04 as it is  not  obvious how to strip them off again - or how to use a word such as "grid". Do I need a wildcard in the path  and if so what is it? The code works using a static local array so it is all about reading json from firebase.  </p>