The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Factory Providers

Factory Providers

3:29
In this lesson, we discuss how and when to use factory providers, to enable dependencies that shouldn’t be available to Angular’s DI.
Watch this lesson now
Avatar
egghead.io

In this lesson, we discuss how and when to use factory providers, to enable dependencies that shouldn’t be available to Angular’s DI.

Avatar
Adam

So how is this example any different than

this.logger = new Logger(true);

which doesn't use any DI?

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?