Skip to content

Instantly share code, notes, and snippets.

@lacolaco
Created November 7, 2017 15:03
Show Gist options
  • Save lacolaco/9d9b821e0be278031ec943d7f182c3db to your computer and use it in GitHub Desktop.
Save lacolaco/9d9b821e0be278031ec943d7f182c3db to your computer and use it in GitHub Desktop.
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
// Import NGSW module
import { ServiceWorkerModule } from '@angular/service-worker';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
// Register ngsw-worker.js as SW
ServiceWorkerModule.register('/ngsw-worker.js'),
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment