Guest User

Untitled

a guest
Apr 20th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import { catchOffline } from '@ngx-pwa/offline';
  2.  
  3. @Component({
  4. template: `<p>{{data$ | async}}</p>`
  5. })
  6. export class SomeComponent {
  7.  
  8. data$ = this.dataService.getData().pipe(catchOffline());
  9.  
  10. constructor(protected dataService: DataService) {}
  11.  
  12. }
Add Comment
Please, Sign In to add comment