title: How treat data with Firebase and AngularJS
body: <p>I'm trying building an App with AngularJS and Firebase - any one have tried?
  I'm following <a href="https://github.com/firebase/angularFire" rel="nofollow">this</a> and using the fist method (implicit sync.) to synchronise my models with Firebase. 
  In my app I want to have two db/json files (Firebase Url) (kind of stuff) one for users and one for votes.</p>
  
  <p>So I did :</p>
  
  <pre class="lang-javascript prettyprint-override"><code>var url = 'mypath.firebaseio.com/votes';
  var promise = angularFire(url, $scope, 'votes', []);
  
  promise.then(function() {
    $scope.removeVotes = function() { 
      $scope.votes.splice($scope.toRemove, 1); 
      $scope.toRemove = null;
    };
  });
  
  //then I push my votes with a function
  $scope.addVote = function() {
    $scope.votes.push({
      from:user.username, 
      to:$scope.voteTo, 
      motivation:$scope.voteMotivation, date:today 
    });
  };
  </code></pre>
  
  <p>and this works fine I can see my votes in the html rendered with my</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;li ng-repeat="vote in votes"&gt;
  </code></pre>
  
  <p>ok
  so I did same thing for users:</p>
  
  <pre class="lang-javascript prettyprint-override"><code>var url1 = 'mypath.firebaseio.com/users';
  var promise1 = angularFire(url1, $scope, 'users', []);
  
  promise1.then(function() {
    $scope.users.push({
      name: user.username, 
      pic: user.profile_image_url
    });
    $scope.removeUser = function() {
      $scope.users.splice($scope.toRemove, 1);
      $scope.toRemove = null;
    };
  });
  </code></pre>
  
  <p>Now I can see my users rendered in my html markup with </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;li ng-repeat="user in users"&gt; 
  </code></pre>
  
  <p>but that s no trace of my data at <a href="https://alex-jpcreative.firebaseio.com/users" rel="nofollow">https://alex-jpcreative.firebaseio.com/users</a></p>
  
  <p>Any ideas why?</p>