Skip to content

Instantly share code, notes, and snippets.

@banujan6
Last active September 4, 2021 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banujan6/90ac96b9d32049cc3138258344f940af to your computer and use it in GitHub Desktop.
Save banujan6/90ac96b9d32049cc3138258344f940af to your computer and use it in GitHub Desktop.
Medium-RXjs-observer
// Simple Observer Object
const observer = {
next(data) {
console.log('We Received new data ' + data);
},
error(err) {
console.error('Oh, No. We got an error : ' + err);
},
complete() {
console.log('Done. Nothing more.');
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment