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.
28 lines
824 B
28 lines
824 B
import { provideHttpClient } from '@angular/common/http';
|
|
import {
|
|
ApplicationConfig,
|
|
isDevMode,
|
|
LOCALE_ID,
|
|
provideZoneChangeDetection,
|
|
} from '@angular/core';
|
|
import { provideRouter } from '@angular/router';
|
|
import { provideServiceWorker } from '@angular/service-worker';
|
|
import { routes } from './app.routes';
|
|
|
|
export const appConfig: ApplicationConfig = {
|
|
providers: [
|
|
provideZoneChangeDetection({ eventCoalescing: true }),
|
|
provideRouter(routes),
|
|
provideHttpClient(),
|
|
{ provide: LOCALE_ID, useValue: 'fr-FR' },
|
|
provideServiceWorker('ngsw-worker.js', {
|
|
enabled: !isDevMode(),
|
|
registrationStrategy: 'registerWhenStable:30000',
|
|
}),
|
|
provideServiceWorker('ngsw-worker.js', {
|
|
enabled: !isDevMode(),
|
|
registrationStrategy: 'registerWhenStable:30000',
|
|
}),
|
|
],
|
|
};
|