Two synchronous http calls using Observable <p>I have a problem with Observables in Angluar2 app. Let assume hypothetical situation that I need to make two separate http calls. One call depends directly on the result of the other. The code looks like this:</p> <pre><code>this.http.get('http://kalafior/group/'+id) .map(res =&gt; res.json()) .subscribe(group =&gt; { //url depends on previous call result this.http.get('http://kalafior/group/'+group.id+'/posts') .map(res =&gt; res.json()) .subscribe((res) =&gt; { console.log(res); }); }); </code></pre> <p>There are nested subscribe() calls which I want to get rid of. </p>