Angular 58 🅰️ Advanced Injection Scopes and Lifecycle
The previous chapter covered the provider recipes — the four use* types, the multi-providers, the provideX functions. This chapter covers where the providers live and how long they live. A provider’s scope is the part of the application that resolves the token to that provider, and a provider’s lifecycle is when the instance is created…