My angular app only needs to fetch data from the server once on app load, and then only communicate with the server to over-write data. Is there a recommended way to implement this?
So far I'm using $resource.query to fetch the initial data set, storing the resource in a service, and am thinking that now I need to overwrite the GET action, but am unsure how to go about suppressing its communication with the server.
I also have another web service called getLatest which does a lot of server side work to get additional records which I then need to append to my cached resource. How can I go about doing this? I've thought about manually creating Resource instances somehow from the retrieved data, or possibly firing a new (uncached) resource query after the getLatest call returns (though this seems inefficient to me)