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.
*
* @see {@link guide/service-worker-communications Service worker communication guide}
*
* @publicApi
*/
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.
*
* @see {@link guide/service-worker-communications Service worker communication guide}
*
* @publicApi
*/
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
* app version but not all.
*
* @see {@link guide/service-worker-communications Service worker communication guide}
*
* @publicApi
*/
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
* checks, and forcibly activate updates.
*
* @see {@link guide/service-worker-communications Service worker communication guide}
*
* @publicApi
*/
@Injectable()