title: AngularJS : Fetch records for pagination from Firebase
body: <p>I'm trying to implement pagination using AngularJS with Firebase as back end. I'm using the below code to fetch data from firebase url:</p>
  
  <pre><code>var firebaseObj = new Firebase("&lt;firebaseUrl&gt;.com/Details/");
  
  var sync = $firebase(firebaseObj.startAt($scope.username).endAt($scope.username).limitToFirst(5));
  
  $scope.articles = sync.$asArray();
  </code></pre>
  
  <p>The above query gives me the first 5 records which start and end with the particular <code>username</code>. Now how to get the next set of data from index 6 to 10.
  Any help would be appreciated ...</p>