Created
October 16, 2020 10:23
-
-
Save LironHazan/9ae2395f7ee2ba6f81b936b6352fa94e to your computer and use it in GitHub Desktop.
Matan Sanders example for rxjs post
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
counter = 0; | |
constructor() { | |
interval(100) | |
.pipe( | |
tap(() => this.counter++), | |
takeWhile(() => this.counter < 100) | |
) | |
.subscribe(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment