egghead
Search
Search
Log In
Search
Search
Angular Service Injection with the Dependency Injector (DI) by Juri Strumpflohner
Define an Angular Service
Register a Service to Angular’s Dependency Injection Mechanism
Define an Aliased Class Provider in Angular
Simplify an Angular Service using a JavaScript Object as a Value Provider
Instantiate a Service using an Angular Factory Provider
Pass Dependencies to a Factory Provider in Angular
Overwrite a Service in a Component Subtree in Angular
Create Multiple Angular Service Instances
Use an Abstract Class as DI Token for your Services in Angular
Avoid Multiple Service Instances in Lazy Loaded Modules in Angular
Control the dependency lookup with @Host, @SkipSelf and @Optional
Introducing Angular Service Injection with the Dependency Injector
Use "providedIn" service registration to avoid multiple instances with lazy loaded modules
Use providedIn for the Angular Service registration to reduce bundle size
egghead
Light