(from http://stackoverflow.com/q/22359905/51280)
Hello, I've recently become aware of the cache flag in ngResource (I use *v1.3.0-build.2417 (snapshot)* at the time of writing this). *However*, the cache will only be populated after the first call to service.get(id). I want to be able to pre-populate the resource cache with an item that was retrieved from elsewhere *It's perfectly reasonable to have the same item be available from 2+ endpoints. E.g. you can have a task available at /task/5 and as part of a collection at /projects/99/tasks if task 5 is part of project 99.* Is this possible? I'm currently using a hand-rolled solution (a bit ugly, IMHO), and the code for it is in the SO question [1] Thanks, Juan [1] http://stackoverflow.com/q/22359905/51280 -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
