Created
April 26, 2017 05:49
-
-
Save Ibro/fdd57af6cb94c13f942cf44c23640bdd to your computer and use it in GitHub Desktop.
RxJS - Observable.interval - simple - Coding Blast - www.codingblast.com
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
import {Observable} from 'rxjs'; | |
Observable | |
.interval(1000) | |
.take(10) | |
.subscribe(function next(value) { | |
console.log('next: ', value); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment