PWA offline feature for Angular clients.
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.
Import the module
...
import { AppPwaOfflineModule } from '@app/client-pwa-offline';
@NgModule({
imports: [
...
AppPwaOfflineModule,
...
],
...
})
export class AppModule {}
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 {}
npx nx run tools:help --search client-pwa-offline: