Pro Angular pp 455-481 | Cite as

Using Services

  • Adam Freeman


Services are objects that provide common functionality to support other building blocks in an application, such as directives, components, and pipes. What’s important about services is the way that they are used, which is through a process called dependency injection. Using services can increase the flexibility and scalability of an Angular application, but dependency injection can be a difficult topic to understand, both in terms of how it works and why it can be useful. To that end, I start this chapter slowly and explain the problems that services and dependency injection can be used to solve, how dependency injection works, and why you should consider using services in your own projects.


Model Object Data Binding Input Property Input Element Parent Component 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Adam Freeman 2017

Authors and Affiliations

  • Adam Freeman
    • 1

Personalised recommendations