In his debut lesson, Trevor test drives the transformation of a response from an external REST service using the the
transformResponse option of AngularJS's
Here's the karma.conf.js:
I am new to Angular so I wanted to see if this response still brings back the full object or just what you request? I had someone tell me that Angular is not able to parse the object before being sent back. Is this true? I wanted to find out because I don't want to have to make a request and get the full object back if I don't need it all before then parsing. Hope that makes sense.
I'm hoping you can clarify something for me.
I'm new at this and I'm just trying to get my head wrapped around it. I'm thinking that when you inject ["$http"], you put the argument as ($http). Why do you inject the transformer into the service using the name services.transformers.ApiResponse and then put the argument as apiResourceTransformer. Why are the names different?
I'm sure this is elementary, so please kindly help this 1st grader out.