Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { catchOffline } from '@ngx-pwa/offline';
- @Component({
- template: `<p>{{data$ | async}}</p>`
- })
- export class SomeComponent {
- data$ = this.dataService.getData().pipe(catchOffline());
- constructor(protected dataService: DataService) {}
- }
Add Comment
Please, Sign In to add comment