Chapter 8: Additional Provider Scopes
This chapter seeks to explain how to use dependency injection scopes to develop more lean components and features in Angular Ivy. To explore these features, we will learn how to create a non-singleton service and how to reuse dependencies across Angular elements.
We will introduce the any
provider scope by revising the theme service so that it can accept specific configurations when used in different scenarios using the any
provider scope and rewiring the schools and course modules to be lazy loaded.
We will then wrap up Part 2, Build a Real-World Application with the Angular Ivy Features You Learned by building a new login element that shows how to share information across application boundaries by using the platform provider scope for Angular Elements.
We will cover the following topics in this chapter:
- Revisiting the root provider scope
- Using the any provider scope for a configurable theme service
- Sharing information...