I've looked a lot online and haven't been able to find anything that describes my problem.
I'm currently using Angular 5.
Basically, I want to perform a put
http request, then once that complete do some stuff, then perform another get
http request and do some more stuff.
Here is my code using nested subscriptions (which I know you shouldn't be doing):
this.projectService.updateProject(this.project).subscribe(
subscribe => {
doSomethingAfterTheUpdate();
this.projectService.get(this.id).subscribe(
subscribe => {
doSomethingAfterTheGet();
});
});
As you can see, I am updating the project, then getting the project. How can I do this properly using RxJS. I've looked into Concat and MergeMap methods, but I want to perform some action after both the update and the get.