Let´s say I have something like the code below
this.sharedService.getvalorMensalObservable().pipe(
switchMap(x => {
this.valorMensal = x;
return this.simuladorGvService.obterTaxasRecebaRapido(this.valorMensal);
//instead of returning, I wish to make more service calls and then more than one subscribe
})
).subscribe(response => {
this.taxas = response;
if (this.taxas != null) {
this.taxasModificadas = true;
}
});
I need a good example of how can I make multpiple service call, so instead of returning from one service and then execute a subscribe, I wish to make more calls and more subscribe actions. Actually, if there is more than one way, I would like to know each good way it´s possible...Promise, any Map Structure (ConcatMap?). Examples are really welcome here