How to use @ngx-pwa/offline - 1 common examples

To help you get started, we’ve selected a few @ngx-pwa/offline examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cyrilletuzi / ngx-pwa-offline / src / app / home / home.component.ts View on Github external
ngOnInit() {

    this.http.get('/api/cinema/movies').pipe(catchOffline()).subscribe((data) => {
      this.movies = data;
    });

  }

@ngx-pwa/offline

[The documentation is available on GitHub.](https://github.com/cyrilletuzi/ngx-pwa-offline)

MIT
Latest version published 2 years ago

Package Health Score

42 / 100
Full package analysis

Popular @ngx-pwa/offline functions

Similar packages