Abstract
In the previous chapter, I introduced services and explained how they are distributed using dependency injection. When using dependency injection, the objects that are used to resolve dependencies are created by service providers, known more commonly as providers. In this chapter, I explain how providers work, describe the different types of provider available, and demonstrate how providers can be created in different parts of the application to change the way that services behave. Table 20-1 puts providers in context.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Adam Freeman
About this chapter
Cite this chapter
Freeman, A. (2018). Using Service Providers. In: Pro Angular 6. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3649-9_20
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3649-9_20
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3648-2
Online ISBN: 978-1-4842-3649-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books