Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app.config.ts 647B

123456789101112131415161718
  1. import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
  2. import { provideRouter, RouteReuseStrategy } from '@angular/router';
  3. import { provideHttpClient, withInterceptors } from '@angular/common/http';
  4. import { provideAnimations } from '@angular/platform-browser/animations';
  5. import { routes } from './app.routes';
  6. import { AuthInterceptor } from './interceptors/auth.interceptor';
  7. export const appConfig: ApplicationConfig = {
  8. providers: [
  9. provideZoneChangeDetection({ eventCoalescing: true }),
  10. provideRouter(routes),
  11. provideHttpClient(withInterceptors([AuthInterceptor])),
  12. provideAnimations(),
  13. ]
  14. };