feat: started working on PWA app

This commit is contained in:
2024-07-04 16:05:48 +03:00
parent 1929760e82
commit f1cbd9267c
29 changed files with 1324 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { ApplicationConfig, provideZoneChangeDetection, isDevMode } from "@angular/core";
import { provideRouter } from "@angular/router";
import { appRoutes } from "./app.routes";
import { provideServiceWorker } from '@angular/service-worker';
export const appConfig: ApplicationConfig = {
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(appRoutes), provideServiceWorker('ngsw-worker.js', {
enabled: !isDevMode(),
registrationStrategy: 'registerWhenStable:30000'
})],
};