feat: add httpClient provider
This commit is contained in:
@@ -3,6 +3,7 @@ import { provideRouter } from '@angular/router';
|
||||
|
||||
import { routes } from './app.routes';
|
||||
import { strings } from './strings';
|
||||
import { provideHttpClient } from '@angular/common/http';
|
||||
|
||||
const STRINGS_TOKEN = 'strings';
|
||||
export const STRINGS_INJECTOR = new InjectionToken<typeof strings>(STRINGS_TOKEN);
|
||||
@@ -12,6 +13,7 @@ export const appConfig: ApplicationConfig = {
|
||||
provideBrowserGlobalErrorListeners(),
|
||||
provideZoneChangeDetection({ eventCoalescing: true }),
|
||||
provideRouter(routes),
|
||||
provideHttpClient(),
|
||||
{provide: STRINGS_INJECTOR, useValue: strings}
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user