File size: 704 Bytes
27e40c0
1bc149f
 
 
 
 
27e40c0
1bc149f
 
 
 
 
 
27e40c0
 
1bc149f
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import {ApplicationConfig, ErrorHandler} from '@angular/core';
import {provideRouter, withComponentInputBinding} from '@angular/router';

import { routes } from './app.routes';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import {provideHttpClient, withFetch} from "@angular/common/http";
import {GlobalErrorHandlerService} from "./error_handling/global-error-handler.service";

export const appConfig: ApplicationConfig = {
  providers: [
    provideRouter(routes, withComponentInputBinding()),
    provideAnimationsAsync(),
    provideAnimationsAsync(),
    provideHttpClient(withFetch()),
    {provide: ErrorHandler, useClass: GlobalErrorHandlerService}
  ]
};