goodeggs / angular-cached-resource

An AngularJS module to interact with RESTful resources, even when browser is offline
MIT License
216 stars 29 forks source link

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

Open sallespro opened 8 years ago

sallespro commented 8 years ago
    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 ?

sallespro commented 8 years ago

i have also found this issue which suggests the ability to define the Array tag independently, which is pretty much related. https://github.com/goodeggs/angular-cached-resource/issues/42