W3cubDocs

/Angular

UpdateAvailableEvent

interface deprecated

An event emitted when a new version of the app is available.

Deprecated: This event is only emitted by the deprecated SwUpdate#available. Use the VersionReadyEvent instead, which is emitted by SwUpdate#versionUpdates. See SwUpdate#available docs for an example.

interface UpdateAvailableEvent {
  type: 'UPDATE_AVAILABLE'
  current: {...}
  available: {...}
}

See also

Properties

Property Description
type: 'UPDATE_AVAILABLE'
current: { hash: string; appData?: Object; }
available: { hash: string; appData?: Object; }

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/service-worker/UpdateAvailableEvent