I want to make multiple http call in Angular2 using observables. Each observable is dependent on the prior observable. If I want to return the inner observable, so I can subscribe to it in the parent component), how can this be done?
Here is what I've tried, but I wasn't able to subscribe to the observable in the parent component.
Child Component:
observablesFn(){
observable1().subscribe(data1 => {
observable2().subcribe(data2 => {
//I want to return this observable (before subscription b/c I want to subscribe in the parent component)
return observable3();
})
}
}