I have three Observables, the first two can be executed at the same time (these not depend on each other), but both responses are needed for the third one. I want to solve this using rxjs / observables and not using promises
I found a similar question here but I could not manage to make it work in my project
So far so good, In my agular project I have this:
this.uploadService.uploadPdf(file).subscribe(res =>{
this.responsePdf = res;
})
if (!!this.thumbnail) {
this.uploadService.uploadThumbnail(this.file).subscribe(res =>{
this.responseThumbnail = res;
})
}
and I need these two responses as params for a third observable, something like:
this.uploadService.submitAll(this.responseThumbnail, this.responsePdf, aString, aNumber).subscribe(res =>{
// manage response
})
How can manage this with rxjs and observables without using promises?