Coding task · Angular course · Module 5: Services and DI

Practice: InjectionToken

InjectionToken lets you inject non-class values - strings, configuration objects, functions. We use it with provide and useValue/useFactory.

Task

Complete the InjectionToken for the API configuration and its use in the component.