Upgrade to Services

Upgrade to Services

Recently you completed a number of exercises including the $http service. Since things like HTTP requests can be used across multiple controllers, all of our HTTP calls should be made in a service of our own making, separate from the controller.

To practice this and to help better understand how services work, you should go back and move your HTTP calls into their own service from the following projects:

Call your service HttpService in each one. Feel free to use either the Angular factory or Angular service syntax, whichever you prefer.