Created
April 9, 2019 10:37
-
-
Save Mayankgupta688/8310617c3d88922e869217766b6c50b9 to your computer and use it in GitHub Desktop.
Sample Rxjs Code
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
function createObserverFromArray() { | |
// Creating Observable from Array | |
let source = from([1, 2, 3, 4, 67]); | |
source.subscribe({ | |
next: function(value) { | |
console.log(`input data ${value}`); | |
} | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment