17 lines
657 B
TypeScript
17 lines
657 B
TypeScript
|
|
import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core';
|
||
|
|
import { provideRouter } from '@angular/router';
|
||
|
|
import { provideHttpClient, withInterceptors } from '@angular/common/http';
|
||
|
|
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
||
|
|
|
||
|
|
import { routes } from './app.routes';
|
||
|
|
import { authInterceptor, errorInterceptor } from './core/interceptors';
|
||
|
|
|
||
|
|
export const appConfig: ApplicationConfig = {
|
||
|
|
providers: [
|
||
|
|
provideBrowserGlobalErrorListeners(),
|
||
|
|
provideRouter(routes),
|
||
|
|
provideHttpClient(withInterceptors([authInterceptor, errorInterceptor])),
|
||
|
|
provideAnimationsAsync(),
|
||
|
|
],
|
||
|
|
};
|