July 2017
Intermediate to advanced
454 pages
10h 1m
English
In our previous sections, we discussed registering a service into components, but what if our service itself requires some dependencies? In this section, you will learn and implement ways to resolve dependencies required for services.
To understand provider classes with dependencies better, let's understand the following use case. We have two services--CityService and TestDiService, and a component, that is, TestDiComponent.
Let's visualize the dependency tree for these services and components:

Let's analyze the preceding diagram in detail to understand the use case we are building:
Read now
Unlock full access