What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-11-18 02:01:13
angular no internet detection
//Tested with Angular 8.1 and rxjs 6.5.2 import { Observable, Observer, fromEvent, merge } from 'rxjs'; import { map } from 'rxjs/operators'; ngOnInit(){ this.createOnline$().subscribe(isOnline => console.log(isOnline)); } createOnline$() { return m... Add solution