22 lines
668 B
TypeScript
22 lines
668 B
TypeScript
import {
|
|
ApplicationConfig,
|
|
provideBrowserGlobalErrorListeners,
|
|
isDevMode,
|
|
provideZonelessChangeDetection,
|
|
} from '@angular/core';
|
|
import { provideRouter } from '@angular/router';
|
|
import { provideHttpClient, withFetch } from '@angular/common/http';
|
|
import { provideServiceWorker } from '@angular/service-worker';
|
|
|
|
export const appConfig: ApplicationConfig = {
|
|
providers: [
|
|
provideBrowserGlobalErrorListeners(),
|
|
provideZonelessChangeDetection(),
|
|
provideRouter([]),
|
|
provideHttpClient(withFetch()),
|
|
provideServiceWorker('ngsw-worker.js', {
|
|
enabled: !isDevMode(),
|
|
registrationStrategy: 'registerWhenStable:30000',
|
|
}),
|
|
],
|
|
};
|