19 lines
669 B
TypeScript
19 lines
669 B
TypeScript
import { ApplicationConfig, isDevMode } from '@angular/core';
|
|
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
|
import { provideHttpClient, withInterceptors } from '@angular/common/http';
|
|
import { provideServiceWorker } from '@angular/service-worker';
|
|
import { provideRouter } from '@angular/router';
|
|
import { routes } from './app.routes';
|
|
|
|
export const appConfig: ApplicationConfig = {
|
|
providers: [
|
|
provideAnimationsAsync(),
|
|
provideHttpClient(),
|
|
provideRouter(routes),
|
|
provideServiceWorker('ngsw-worker.js', {
|
|
enabled: !isDevMode(),
|
|
registrationStrategy: 'registerWhenStable:30000'
|
|
})
|
|
],
|
|
};
|