Last active
June 20, 2021 12:39
-
-
Save teyfix/8b11587f0bce33d5bd5fe0130477ae5b to your computer and use it in GitHub Desktop.
rxjs - subscribing subject
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
const subject = new Subject(); | |
subject.subscribe(value => console.log(value)); | |
subject.next('lorem'); | |
subject.next('ipsum'); | |
subject.next('dolor'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment