Added PWA manifest with icons and service.
This commit was merged in pull request #4.
This commit is contained in:
@@ -13,6 +13,8 @@ import { RegonComponent } from './components/regon/regon.component';
|
||||
import { IbanComponent } from './components/iban/iban.component';
|
||||
import { IdentityCardComponent } from './components/identitycard/identitycard.component';
|
||||
import {NgOptimizedImage} from "@angular/common";
|
||||
import { ServiceWorkerModule } from '@angular/service-worker';
|
||||
import { environment } from '../environments/environment';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
@@ -33,6 +35,12 @@ import {NgOptimizedImage} from "@angular/common";
|
||||
MatSnackBarModule,
|
||||
ReactiveFormsModule,
|
||||
NgOptimizedImage,
|
||||
ServiceWorkerModule.register('ngsw-worker.js', {
|
||||
enabled: environment.production,
|
||||
// Register the ServiceWorker as soon as the application is stable
|
||||
// or after 30 seconds (whichever comes first).
|
||||
registrationStrategy: 'registerWhenStable:30000'
|
||||
}),
|
||||
],
|
||||
providers: [TranslatePipe],
|
||||
bootstrap: [AppComponent]
|
||||
|
||||
Reference in New Issue
Block a user