docs(service-worker): add links to service worker communication guide (#36847)

PR Close #36847
This commit is contained in:
Sonu Kapoor 2020-08-24 17:36:57 -04:00 committed by Joey Perrott
parent f5d1e9a2d1
commit 0fc2bef0cd
2 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,8 @@ export const ERR_SW_NOT_SUPPORTED = 'Service workers are disabled or not support
/** /**
* An event emitted when a new version of the app is available. * An event emitted when a new version of the app is available.
* *
* @see {@link guide/service-worker-communications Service worker communication guide}
*
* @publicApi * @publicApi
*/ */
export interface UpdateAvailableEvent { export interface UpdateAvailableEvent {
@ -25,6 +27,8 @@ export interface UpdateAvailableEvent {
/** /**
* An event emitted when a new version of the app has been downloaded and activated. * An event emitted when a new version of the app has been downloaded and activated.
* *
* @see {@link guide/service-worker-communications Service worker communication guide}
*
* @publicApi * @publicApi
*/ */
export interface UpdateActivatedEvent { export interface UpdateActivatedEvent {
@ -42,6 +46,8 @@ export interface UpdateActivatedEvent {
* service worker cache has been partially cleaned by the browser, removing some files of a previous * service worker cache has been partially cleaned by the browser, removing some files of a previous
* app version but not all. * app version but not all.
* *
* @see {@link guide/service-worker-communications Service worker communication guide}
*
* @publicApi * @publicApi
*/ */
export interface UnrecoverableStateEvent { export interface UnrecoverableStateEvent {

View File

@ -17,6 +17,8 @@ import {ERR_SW_NOT_SUPPORTED, NgswCommChannel, UnrecoverableStateEvent, UpdateAc
* Subscribe to update notifications from the Service Worker, trigger update * Subscribe to update notifications from the Service Worker, trigger update
* checks, and forcibly activate updates. * checks, and forcibly activate updates.
* *
* @see {@link guide/service-worker-communications Service worker communication guide}
*
* @publicApi * @publicApi
*/ */
@Injectable() @Injectable()