Use Angular Factory Providers

Share this video with your friends

Send Tweet

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

Adam
Adam
~ 8 years ago

So how is this example any different than

this.logger = new Logger(true);

which doesn't use any DI?