Summary
In this chapter, we discussed Angular DI as we know it now. DI allows us to inject the provider class and injectables into components using providers. We learned and implemented provider classes and hierarchical Dependency Injection. We also learned to register providers in the NgModule or inside components directly.
We focused on how to create and configure Injectors and also how to register services in providers inside the component decorator.
This chapter explained that a provider class can also have dependencies, which internally can be injected again into services or components. In the next chapter, you will learn about Angular animations. Angular animations is a core library that provides a better user experience by applying ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access