April 2018
Intermediate
110 pages
2h 12m
English
Now that the dependency is installed, it's time to enable the service worker.
This involves three steps:
.angular-cli.json.ServiceWorkerModule in our AppModule.src/ngsw-config.json.We will use the ng set command to enable support for the service worker in our browser app in .angular-cli.json:
.angular-cli.json:ng set apps.0.serviceWorker=true
serviceWorker is set to true in the first app in the apps array in .angular-cli.json:We will import the ServiceWorkerModule ...