30 lines
876 B
TypeScript
30 lines
876 B
TypeScript
|
import { NgModule } from '@angular/core';
|
||
|
import { BrowserModule } from '@angular/platform-browser';
|
||
|
|
||
|
import { AppRoutingModule } from './app-routing.module';
|
||
|
import { AppComponent } from './app.component';
|
||
|
import { ServiceWorkerModule } from '@angular/service-worker';
|
||
|
import { environment } from '../environments/environment';
|
||
|
|
||
|
import { ListComponent } from './_components/list/list.component';
|
||
|
|
||
|
@NgModule({
|
||
|
declarations: [
|
||
|
AppComponent,
|
||
|
ListComponent
|
||
|
],
|
||
|
imports: [
|
||
|
BrowserModule,
|
||
|
AppRoutingModule,
|
||
|
ServiceWorkerModule.register('ngsw-worker.js', {
|
||
|
enabled: environment.production,
|
||
|
// Register the ServiceWorker as soon as the app is stable
|
||
|
// or after 30 seconds (whichever comes first).
|
||
|
registrationStrategy: 'registerWhenStable:30000'
|
||
|
})
|
||
|
],
|
||
|
providers: [],
|
||
|
bootstrap: [AppComponent]
|
||
|
})
|
||
|
export class AppModule { }
|