title: How to handle pagination and count with angularjs resources?
body: <p>I have to build an angularjs client for an API outputting JSON like this:</p>
  
  <pre><code>{
    "count": 10,
    "next": null,
    "previous": "http://site.tld/api/items/?start=4"
    "results": [
      {
        "url": "http://site.tld/api/items/1.json",
        "title": "test",
        "description": "",
        "user": "http://site.tld/api/users/4.json",
        "creation_datetime": "2013-05-08T14:31:43.428"
      },
      {
        "url": "http://site.tld/api/items/2.json",
        "title": "test2",
        "description": "",
        "user": "http://site.tld/api/users/1.json",
        "creation_datetime": "2013-05-08T14:31:43.428"
      },
      {
        "url": "http://site.tld/api/items/3.json",
        "title": "test3",
        "description": "",
        "user": "http://site.tld/api/users/2.json",
        "creation_datetime": "2013-05-08T14:31:43.428"
      }
    ]
  }
  </code></pre>
  
  <p>How can I make a <a href="http://docs.angularjs.org/api/ngResource.%24resource#!"><code>$resource</code></a> that maps to this ? If I use <code>isArray=false</code>, I'll get the entire blob as one object, usable for reading, but I can't call <code>.put()</code> on it. If I use <code>isArray</code>, it just doesn't work.</p>
  
  <p>Is there any clean way to do this? Or should I go back to using <code>$http</code>?</p>