feat: started working on PWA app
This commit is contained in:
11
apps/NwaifuAnime/src/app/app.config.ts
Normal file
11
apps/NwaifuAnime/src/app/app.config.ts
Normal 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'
|
||||
})],
|
||||
};
|
||||
Reference in New Issue
Block a user