UNPKG

ngx-pwa

Version:

Provides functionality around the progressive web app functionality in angular. Most notably the an approach to cache POST, UPDATE and DELETE requests.

30 lines (29 loc) 1.37 kB
import { OnInit } from '@angular/core'; import { MatDialogRef } from '@angular/material/dialog'; import { VersionReadyDialogDataInternal } from '../../models/version-ready-dialog-data-internal.model'; import { VersionReadyDialogData } from '../../models/version-ready-dialog-data.model'; import * as i0 from "@angular/core"; /** * A dialog that gets displayed when a new version of the pwa has been downloaded and is ready for install. */ export declare class NgxPwaVersionReadyDialogComponent implements OnInit { private readonly dialogRef; readonly data?: VersionReadyDialogData | undefined; /** * The data to customize the Version Ready Dialog. * Is built from the MAT_DIALOG_DATA input. */ versionReadyDialogData: VersionReadyDialogDataInternal; constructor(dialogRef: MatDialogRef<NgxPwaVersionReadyDialogComponent>, data?: VersionReadyDialogData | undefined); ngOnInit(): void; /** * Closes the dialog with data to trigger a reload of the app. */ update(): void; /** * Closes the dialog with data to not trigger anything. */ cancel(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NgxPwaVersionReadyDialogComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgxPwaVersionReadyDialogComponent, "ngx-pwa-version-ready-dialog", never, {}, {}, never, never, true, never>; }