title: ng-Grid Pagination - AngularJS
body: <pre><code>   &lt;div ng-app="myapp"&gt;
      &lt;div ng-controller="Ctrl"&gt;    
       &lt;table ng-grid &gt;
          &lt;tr ng-repeat="todo in todos"&gt;
              &lt;td &gt;{{todo.name}}&lt;/td&gt;
              &lt;td &gt;{{todo.estimate | number}}&lt;/td&gt;
              &lt;td width="50"&gt;{{todo.done }}&lt;/td&gt;
              &lt;td title="Create At"&gt;{{todo.created_at | date}}&lt;/td&gt;
          &lt;/tr&gt;
       &lt;/table&gt;
      &lt;/div&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>And the javascript code is in <a href="http://jsfiddle.net/dalcib/J3fjc/" rel="nofollow noreferrer">http://jsfiddle.net/dalcib/J3fjc/</a> . I am new to AngularJS, I can understand the above html. Would someone please explain me what's really done there in the javascript?</p>
  
  <p>It's one of the answers for <a href="https://stackoverflow.com/questions/10816073/how-to-do-paging-in-angularjs">How to do paging in AngularJS?</a>.</p>