AngularJS enables you to create your own custom services to provide functionality in AngularJS components that require it. As you have seen so far in this chapter, services provide a wide variety of functionality for AngularJS applications.
There are four main types of services that you will likely be implementing in your code: value
, constant
, factory
, and service
. The following sections cover them.