November 2019
Beginner
804 pages
20h 1m
English
Injectors are elements that Angular uses to actually instantiate, retrieve, and inject dependencies where they are needed. Injectors instantiate dependencies once and store the created instances in a DI container. Each time a dependency is needed, the injector first checks whether it already has an instance of it in its container. If it does, then it returns that instance instead of creating a new one.
If we simplify this, we can consider these containers as simple maps storing token-instance pairs. Each pair is composed ...
Read now
Unlock full access