fwiw I solved the below via extending object returned by $resource instead of using action.transformResponse.
On Monday, January 13, 2014 7:09:23 PM UTC-8, Nikita Tovstoles wrote: > > AngularJS newbie here: I am paging a 3rd party JSON API and would like to > modify a successful response to include paging info, specified in request > params in the response object. Since I am using $resource, I presume > transformResponse is the function to override for the above, right? it > takes data, headers, but how can I get at (request) params and HTTP > response status code? Or is this function only called on HTTP 200? > > thank you, > -nikita > -- 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/groups/opt_out.
