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

Registering a token in appConfig

Order the registration of an InjectionToken in the application configuration (consecutive lines):

Items to put in order

  • { provide: API_URL, useValue: 'https://api.dojo.com/v1' }
  • ]
  • providers: [
  • };
  • export const appConfig: ApplicationConfig = {

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