Skip to content

Instantly share code, notes, and snippets.

@stevermeister
Created June 3, 2017 19:14
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 stevermeister/f28edc7bb3ee905618edeb74ae2cc005 to your computer and use it in GitHub Desktop.
Save stevermeister/f28edc7bb3ee905618edeb74ae2cc005 to your computer and use it in GitHub Desktop.
export class TestComponent {
constructor(private http: Http) { }
ngOnInit() {
Observable.timer(1000).subscribe(console.log);
this.http.get('http://api.com').subscribe(console.log);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment