daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Mar 25th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Observable } from 'rxjs';
  2.  
  3. const observable = new Observable(observer => {
  4.   setTimeout(() => {
  5.     observer.next('Hello from a Observable!');
  6.   }, 2000);
  7. });
  8.  
  9. observable.subscribe(value => console.log(value));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top