• Overview
@angular/service-worker

ServiceWorkerModule

NgModule
  
    class ServiceWorkerModule {}
  
  

Register the given Angular Service Worker script.

If enabled is set to false in the given options, the module will behave as if service workers are not supported by the browser, and the service worker will not be registered.

@paramscriptstring
Jump to details