Created
June 20, 2021 12:38
-
-
Save teyfix/adb75ed3434cbac03f4e1cd4656fa834 to your computer and use it in GitHub Desktop.
rxjs - using behavior 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 fibonacci = new BehaviorSubject(1); | |
fibonacci.next(1); | |
fibonacci.next(2); | |
fibonacci.next(3); | |
fibonacci.next(5); | |
fibonacci.next(8); | |
console.log(fibonacci.value); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment