ServiceWorkerModule
NgModule
API
class ServiceWorkerModule {}
register
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.
@paramscript
string
@returns
ModuleWithProviders<ServiceWorkerModule>
Jump to details