29Creating Your Own Custom Angular Services
Angular provides a lot of functionality in its built-in services, but it also allows you to implement your own custom services to provide specific functionality. You should implement a custom service any time you need to provide task-based functionality to an application.
When implementing custom services, you need to think about each service as being a chunk of reusable code that performs one or more related tasks. Then you can design and group them together into libraries that can easily be consumed by several different Angular applications.
This chapter introduces Angular custom services. It provides several examples of custom Angular services to provide you with a clearer understanding of how ...