18 lines
647 B
TypeScript
18 lines
647 B
TypeScript
import { provideHttpClient, withFetch } from "@angular/common/http";
|
|
import { ApplicationConfig, isDevMode, provideZoneChangeDetection } from "@angular/core";
|
|
import { provideRouter } from "@angular/router";
|
|
import { provideServiceWorker } from "@angular/service-worker";
|
|
import { appRoutes } from "./app.routes";
|
|
|
|
export const appConfig: ApplicationConfig = {
|
|
providers: [
|
|
provideZoneChangeDetection({ eventCoalescing: true }),
|
|
provideRouter(appRoutes),
|
|
provideServiceWorker("ngsw-worker.js", {
|
|
enabled: !isDevMode(),
|
|
registrationStrategy: "registerWhenStable:30000",
|
|
}),
|
|
provideHttpClient(withFetch()),
|
|
],
|
|
};
|