Please enable JavaScript.
Coggle requires JavaScript to display documents.
Dependency Injection (Injectors (Injector hierarchy (Module injectors (For…
Dependency Injection
Injectors
-
-
-
Basics
Where a service is provided affect the final bundle size, service scope, and service lifetime
-
-
-
Services
-
Injectable() decorator
-
Can be used to provide services in root, module, and component injectors
-
-
-
Providers
-
Dependency tokens
-
-
In dependencies provided by classes, the type is the token and the instance is the value
Injecting
-
Basics
-
-
Different injectors can be configured with different providers if the service is provided by more than one class