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 ...

Get Accelerating Angular Development with Ivy now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.