Skip to content

Instantly share code, notes, and snippets.

@raloliver
Created July 1, 2019 17:42
Show Gist options
  • Save raloliver/90f869c931e53c0d71b66701b45bf742 to your computer and use it in GitHub Desktop.
Save raloliver/90f869c931e53c0d71b66701b45bf742 to your computer and use it in GitHub Desktop.
var observable = Rx.Observable.create(observer => {
observer.next(5);
})
observable.subscribe(
value => console.log(`My Value is ${value}`)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment