How to make nested Observable calls in Angular2
I am having some troubles making nested Observable calls. By that I mean a call to a http service that retrieve a user, then getting the id from the user to make another http call, and finally render the results on screen. 1) HTTP GET 1 : get the User 2) HTTP GET 2: get the User's preferences passing a unique identifier as a parameter This translates into the following code in component Blah.ts : version 1 - this code does not display anything ngOnInit() { this.userService.getUser() .flatMap(u => { this.user = u; // save the user return Observable.of(u); // pass on the Observable }) .flatMap(u