Skip to content

Instantly share code, notes, and snippets.

@Ibro
Created April 26, 2017 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ibro/fdd57af6cb94c13f942cf44c23640bdd to your computer and use it in GitHub Desktop.
Save Ibro/fdd57af6cb94c13f942cf44c23640bdd to your computer and use it in GitHub Desktop.
RxJS - Observable.interval - simple - Coding Blast - www.codingblast.com
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