SwUpdate
class
Subscribe to update notifications from the Service Worker, trigger update checks, and forcibly activate updates.
class SwUpdate {
available: Observable<UpdateAvailableEvent>
activated: Observable<UpdateActivatedEvent>
isEnabled: boolean
checkForUpdate(): Promise<void>
activateUpdate(): Promise<void>
}
Properties
Property | Description |
---|---|
available: Observable<UpdateAvailableEvent>
|
Read-Only
Emits an |
activated: Observable<UpdateActivatedEvent>
|
Read-Only
Emits an |
isEnabled: boolean
|
Read-Only
True if the Service Worker is enabled (supported by the browser and enabled via |
Methods
checkForUpdate() |
---|
checkForUpdate(): Promise<void>ParametersThere are no parameters. Returns
|
activateUpdate() |
---|
activateUpdate(): Promise<void>ParametersThere are no parameters. Returns
|
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v9.angular.io/api/service-worker/SwUpdate