In Angular 2, the RxJS asynchronous observables are first-class citizens and much of the core toolkit has been configured to rely upon them. Nonetheless, it is still valuable to be able to have conversion between them, especially since they have similar duties.
Tip
For more on RxJS Observables, refer to Chapter 5 , ReactiveX Observables, which covers them in depth.
Note
The code, links, and a live example of this are available at http://ngcookbook.herokuapp.com/0905/.
You'll begin with the following simplistic application:
[app/article.component.ts] import {Component} from '@angular/core'; import {Http} from '@angular/http'; @Component({ selector: 'article', template: ` <p></p> ` }) export class ArticleComponent { constructor(private http:Http) { // For demo purposes, have this plunk request itself to ...