Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Angular Dependency Injection (DI) Explained

via egghead.io

Overview

This course will teach you the ins and outs of dependency injection in Angular. You will learn what dependency injection means, how it applies to software in general and how it is implemented in Angular. 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.
This Angular course assumes knowledge of some fundamentals. We have an Angular course that will Get you started

Syllabus

  • Understand Angular Dependency Injection
  • Inject an Angular Service into a Component using Providers
  • Use Provide and UseClass in Angular Providers
  • Use Angular Factory Providers
  • Use Angular Factory Providers with dependencies
  • Understand Angular @Injectable
  • Use Angular Value Providers
  • Understand OpaqueToken in Angular

Taught by

Pascal Precht

Reviews

4.5 rating at egghead.io based on 175 ratings

Start your review of Angular Dependency Injection (DI) Explained

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.