Summary

AngularJS services are singleton objects that you can register with the dependency injector; controllers and other AngularJS components, including other services, can consume them. AngularJS provides much of the back-end functionality in the way of services, such as $http, which enables you to easily integrate web server communication into your AngularJS applications.

In this chapter you also learned about several of the built-in services, such as $cookieStore, $q, $window, $location, $animate, and $cacheFactory. These and other AngularJS services can be used to easily inject functionality into your controllers, directives, and custom services.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset