Last active
September 4, 2021 17:06
-
-
Save banujan6/90ac96b9d32049cc3138258344f940af to your computer and use it in GitHub Desktop.
Medium-RXjs-observer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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