goodeggs / angular-cached-resource

An AngularJS module to interact with RESTful resources, even when browser is offline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Querying for multiple resources at once without sending tag parameter to Endpoint

sallespro opened this issue · comments

    var CachedParents = $cachedResource('data', 'http://www.example.com/data/:_id', { _id: "@id"});
    // gets an Array and tags it 'cached-parents'
    var all = CachedParents.query({tag: 'cached-resource'})

ends up doing this

GET /data?tag=cached-resource

How can i tag to store the resulting Array, but not send the tag parameter in the request ?

i have also found this issue which suggests the ability to define the Array tag independently, which is pretty much related.
#42