14 lines
646 B
TypeScript
14 lines
646 B
TypeScript
import { ApplicationConfig, provideZoneChangeDetection, isDevMode } from '@angular/core';
|
|
import { provideRouter } from '@angular/router';
|
|
|
|
import { routes } from './app.routes';
|
|
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
|
import { provideServiceWorker } from '@angular/service-worker';
|
|
|
|
export const appConfig: ApplicationConfig = {
|
|
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes), provideAnimationsAsync('noop'), provideServiceWorker('./sw.js', {
|
|
enabled: !isDevMode(),
|
|
registrationStrategy: 'registerWhenStable:30000'
|
|
})]
|
|
};
|