Last active
September 5, 2021 09:37
-
-
Save banujan6/7bb9b05fe49e9b0931b0cef08672e5ad to your computer and use it in GitHub Desktop.
medium-rxjs-operators-creation
This file contains hidden or 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
import { of } from 'rxjs'; | |
// of is a Creation Operator, | |
// That can create new Observable by taking the parameters as the emitting values. | |
of("First Data", "Second Data") | |
.subscribe(data => console.log(data)); | |
// CONSOLE OUTPUT ------------------------ | |
// > First Data | |
// > Second Data | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment