Question · Angular course · Module 5: Services and DI

Registering a token's value

Which key do you use to assign a constant value to an InjectionToken in providers?

Answer options

  • useClass
  • useFactory
  • useValue
  • useExisting

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