Put in order · Angular course · Module 5: Services and DI

Provider with a factory

Arrange the provider object that uses a factory (one line):

Items to put in order

  • useFactory:
  • { provide: LoggerService,
  • createLogger,
  • deps: [EnvironmentService] }

You can check the correct answer by solving this task in the CodeWorlds game.