24 lines
960 B
TypeScript
24 lines
960 B
TypeScript
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
|
|
import { provideRouter } from '@angular/router';
|
|
import { routes } from './app.routes';
|
|
import { provideClientHydration } from '@angular/platform-browser';
|
|
import { provideHttpClient, withInterceptorsFromDi, withFetch, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
import { LoadingInterceptor } from './shared/interceptors/loading.interceptor';
|
|
import { TokenValidationInterceptor } from './shared/interceptors/token-validation.interceptor';
|
|
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
|
|
|
export const appConfig: ApplicationConfig = {
|
|
providers: [
|
|
provideZoneChangeDetection({ eventCoalescing: true }),
|
|
provideRouter(routes),
|
|
provideClientHydration(),
|
|
provideHttpClient(
|
|
withInterceptorsFromDi(),
|
|
withFetch()
|
|
),
|
|
LoadingInterceptor,
|
|
TokenValidationInterceptor,
|
|
provideAnimationsAsync(),
|
|
]
|
|
};
|