FrontEnd Angular - v0.0.1-alpha
This commit is contained in:
21
src/app/app-service-worker.module.ts
Normal file
21
src/app/app-service-worker.module.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { environment } from 'src/environments/environment';
|
||||
import { ServiceWorkerModule } from '@angular/service-worker';
|
||||
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [],
|
||||
imports: [
|
||||
CommonModule,
|
||||
ServiceWorkerModule.register('ngsw-worker.js', {
|
||||
enabled: environment.production,
|
||||
registrationStrategy: 'registerWhenStable:30000'
|
||||
})
|
||||
],
|
||||
exports: [
|
||||
ServiceWorkerModule
|
||||
]
|
||||
})
|
||||
export class AppServiceWorkerModule { }
|
||||
Reference in New Issue
Block a user