Sunday, 8 September 2013

Use local data with Angular resource

Use local data with Angular resource

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.

No comments:

Post a Comment