I have multiple REST-requests to do. The requests should happen in the declared order - one after the end of the other.
At the end of all of them I need to do an action.
How can I get that? I think there must be better way than cascading the requests. But I am pretty bad in RxJS and asynchronous programming.
this.http.get <any> ("/a").subscribe ((resp) => { foo ();
this.http.get <any> ("/b").subscribe ((resp) => { bar ();
this.http.get <any> ("/c").subscribe ((resp) => { baz (); }}}
);
// action now