feat: add httpClient provider

This commit is contained in:
2025-12-11 23:12:32 -03:00
parent 54ac7e0210
commit a8fd369718

View File

@@ -3,6 +3,7 @@ import { provideRouter } from '@angular/router';
import { routes } from './app.routes'; import { routes } from './app.routes';
import { strings } from './strings'; import { strings } from './strings';
import { provideHttpClient } from '@angular/common/http';
const STRINGS_TOKEN = 'strings'; const STRINGS_TOKEN = 'strings';
export const STRINGS_INJECTOR = new InjectionToken<typeof strings>(STRINGS_TOKEN); export const STRINGS_INJECTOR = new InjectionToken<typeof strings>(STRINGS_TOKEN);
@@ -12,6 +13,7 @@ export const appConfig: ApplicationConfig = {
provideBrowserGlobalErrorListeners(), provideBrowserGlobalErrorListeners(),
provideZoneChangeDetection({ eventCoalescing: true }), provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes), provideRouter(routes),
provideHttpClient(),
{provide: STRINGS_INJECTOR, useValue: strings} {provide: STRINGS_INJECTOR, useValue: strings}
] ]
}; };