app.config.ts 704 B

1234567891011121314
  1. import { provideHttpClient, withInterceptors } from '@angular/common/http';
  2. import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
  3. import { provideRouter, withPreloading } from '@angular/router';
  4. import { AdminMenuPreloadingStrategy } from './admin-menu-preloading.strategy';
  5. import { adminRequestActivityInterceptor } from './admin-request-activity.interceptor';
  6. import { routes } from './app.routes';
  7. export const appConfig: ApplicationConfig = {
  8. providers: [
  9. provideZoneChangeDetection({ eventCoalescing: true }),
  10. provideHttpClient(withInterceptors([adminRequestActivityInterceptor])),
  11. provideRouter(routes, withPreloading(AdminMenuPreloadingStrategy)),
  12. ],
  13. };