I use RxJs 6.6.0 and Angular 9.
I have two functions which returns Observable<'Class1'> and Observable<'number'>.
so I use to:
funcA().subscribe(x=>{ // do something...});
funcB().subscribe(x=>{// do somethings..});
But I need to call funcB only when funcA() is finish. I see than concat may be helpful but I can't get the two answers like that
concat(funcA,funcB).subscribe( (x,y)=>{// do with x
//do with y});
I would like to do this because parameters of funcB depend of the return of funcA.