@rfprodz/client-pwa-offline
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

PWA Offline Module for Angular

PWA offline feature for Angular clients.

Description

Registers an interceptor that activates a view indicating that the client system if offline.

Registers a route that serves the view that is activated when the client system goes offline.

Usage

Within the development workspace

Import the module

...
import { AppPwaOfflineModule } from '@app/client-pwa-offline';

@NgModule({
  imports: [
    ...
    AppPwaOfflineModule,
    ...
  ],
  ...
})
export class AppModule {}

As an external package

Install the package

yarn add @rfprodz/client-pwa-offline @angular/common @angular/core @angular/material @angular/router

Import the module

...
import { AppPwaOfflineModule } from '@rfprodz/client-pwa-offline';

@NgModule({
  imports: [
    ...
    AppPwaOfflineModule,
    ...
  ],
  ...
})
export class AppModule {}

Developer commands reference

npx nx run tools:help --search client-pwa-offline:

References

Package Sidebar

Install

npm i @rfprodz/client-pwa-offline

Weekly Downloads

41

Version

1.1.5

License

MIT

Unpacked Size

43.3 kB

Total Files

18

Last publish

Collaborators

  • rfprodz