-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.ts
More file actions
19 lines (18 loc) · 787 Bytes
/
Copy pathapp.config.ts
File metadata and controls
19 lines (18 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { provideHttpClient, withInterceptors } from '@angular/common/http';
import { ApplicationConfig, provideZonelessChangeDetection } from '@angular/core';
import { provideRouter, Router, withComponentInputBinding } from '@angular/router';
import { AppRouter } from 'core/fw-extensions/app-router';
import { authInterceptor } from 'core/interceptors/auth/auth.interceptor';
import { errorInterceptor } from 'core/interceptors/error/error.interceptor';
import { appRoutes } from './app.routes';
export const appConfig: ApplicationConfig = {
providers: [
provideRouter(appRoutes, withComponentInputBinding()),
provideHttpClient(withInterceptors([errorInterceptor, authInterceptor])),
provideZonelessChangeDetection(),
{
provide: Router,
useClass: AppRouter,
},
],
};