I have thin service wrapped around $resource to handle communication with API. Usually it works just as needed. However now I would like to extend get from $resource.
Let's say that front end need returned data in certain order. Back end for whatever reason can not be modified. Sort order will be needed application wide, so changing it in $resource definition would be best.
Official documentation is silent on this topic. Adding new functions is well documented, but changing default ones is not.
How to (ideally) add .then() to get.
$provide.decorator? Anyway you wrap your method and attach $q there for example:function wrap() { var def = $q.defer; dosmthAsync(def.resolve); return def}getreturned by $resource that way? Can You post that as answer?