import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core'; import { provideHttpClient } from '@angular/common/http'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; import { IndicadoresService } from './features/indicadores/indicadores.service'; import { IndicadoresPeriodos } from './features/indicadores/indicadores-periodos'; import { TeaSeguimientoService } from './features/indicadores/tea-seguimiento.service'; import { FhirIndicadoresPeriodos, FhirIndicadoresService } from './features/indicadores/indicadores-fhir'; import { FhirTeaSeguimientoService } from './features/indicadores/tea-seguimiento-fhir'; export const appConfig: ApplicationConfig = { providers: [ provideBrowserGlobalErrorListeners(), provideRouter(routes), // La sesión es del navegador (`auth/auth.service.ts`): no hay interceptor // porque la WebApi no responde 401. provideHttpClient(), // The indicator page reads the WebApi's FHIR endpoint; without these lines it reads the indicator JSON contract // (`//indicadores//datos`, `/tea/seguimiento`). { provide: IndicadoresService, useClass: FhirIndicadoresService }, { provide: IndicadoresPeriodos, useClass: FhirIndicadoresPeriodos }, { provide: TeaSeguimientoService, useClass: FhirTeaSeguimientoService }, ] };