One of the most fundamental components of Angular functionality is services. Services provide task-based functionality to applications. You can think of a service as a chunk of reusable code that performs one or more related tasks. Angular provides several built-in services and also allows you to create your own customized services.
This chapter introduces built-in Angular services. You will get a chance to see and implement some of the built-in services, such as
http for web server communication,
router for managing and changing the state of an application, and
animate to provide animation capabilities.
The purpose of a service is to provide a concise bit of ...