https://egghead.io/courses/angular-2-dependency-injection-di-explained
This course will teach you the ins and outs of dependency injection in Angular 2. You will learn what dependency injection means, how it applies to software in general and how it is implemented in Angular 2. We will take a look at simple use cases like injecting services, to exploring different providers recipes and when they are useful. We will also cover almost unknown features like viewProviders, OpaqueToken and edge cases where forwardRef() is needed.
- What is Dependency Injection? 2:36
- Injecting a service into a component 3:07
- Understanding Providers 3:57
- Factory Providers 3:29
- Factory Providers with dependencies 3:05
- Understanding @Injectable 4:27
- Value Providers 3:00
- Understanding OpaqueToken 3:53