Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment