In this lesson Trevor will show you how to transform your requests using AngularJS's $http service's transformRequest option and TDD. This allows you to keep your applications domain clean when integrating with third party APIs.
I have a dumb question (please forgive me as I'm trying to understand) that might not be really related to this lesson. But in view.js on line 3, "api" is being passed into the controller's 3rd parameter (argument function) as the 2nd parameter to the function called "api".
Does that "api" map to 'services.Api' preceding it in the 2nd parameter to the controller.
In other words, how is the "api" argument to the "function($scope, api)" being mapped to 'services.Api'