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.

24 lines (23 loc) 1.21 kB
import { MatDialog } from '@angular/material/dialog'; import { SynchronizeDialogData } from '../../models/synchronize-dialog-data.model'; import { NgxPwaOfflineService } from '../../services/offline.service'; import * as i0 from "@angular/core"; /** * Displays a badge with the amount of cached offline request. * Can be clicked to open a dialog to sync cached requests to the server. */ export declare class NgxPwaSynchronizeBadgeComponent<OfflineServiceType extends NgxPwaOfflineService> { readonly offlineService: OfflineServiceType; private readonly dialog; /** * Configuration data for the Synchronize Dialog. */ synchronizeDialogData?: SynchronizeDialogData; constructor(offlineService: OfflineServiceType, dialog: MatDialog); /** * Opens the dialog for syncing cached requests to the server. */ openSyncDialog(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NgxPwaSynchronizeBadgeComponent<any>, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgxPwaSynchronizeBadgeComponent<any>, "ngx-pwa-synchronize-badge", never, { "synchronizeDialogData": { "alias": "synchronizeDialogData"; "required": false; }; }, {}, never, never, true, never>; }