Angular – extending $resource subobject with custom methods
I’ve found that problem before, and the solution seems to be transformResponse, as John Ledbetter says in the other answer. Anyway, if you need to keep the entire object, and also having the array in ‘items’ filled with instances of the resource, you might be able to do it with the following trick: Taking the … Read more