Suppose, I call one service returning observable and if it doesn't throw any error then should call another service which also returns observable
.
What I have done is that I have called both separately such as one after the other but when I debug the back end it is simultaneously jumping between the 2 called apis and behaves abnormally.
this.taskServices.addService().subscribe((s) => {
if(s) {
this.taskServices.clean().subscribe(s=> {
console.write('done')
});
}
});
The code might not be correct syntax wise since I typed using a cell phone but gives the idea.