21 lines
948 B
TypeScript
21 lines
948 B
TypeScript
|
|
import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection } from '@angular/core';
|
||
|
|
import { provideRouter } from '@angular/router';
|
||
|
|
|
||
|
|
import { routes } from './app.routes';
|
||
|
|
import { provideClientHydration, withEventReplay } from '@angular/platform-browser';
|
||
|
|
import { provideCharts, withDefaultRegisterables } from 'ng2-charts';
|
||
|
|
import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||
|
|
import { AuthInterceptor } from './core/interceptors/auth.interceptor';
|
||
|
|
|
||
|
|
export const appConfig: ApplicationConfig = {
|
||
|
|
providers: [
|
||
|
|
provideBrowserGlobalErrorListeners(),
|
||
|
|
provideZoneChangeDetection({ eventCoalescing: true }),
|
||
|
|
provideRouter(routes),
|
||
|
|
provideClientHydration(withEventReplay()),
|
||
|
|
provideHttpClient(withInterceptorsFromDi()),
|
||
|
|
provideCharts(withDefaultRegisterables()),
|
||
|
|
{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
|
||
|
|
]
|
||
|
|
};
|