var x = "foo";
this.http.get ("/myurl/a").subscribe (resp => console.log (x));
x = "bar";
this.http.get ("/myurl/b").subscribe (resp => console.log (x));
Output is a double "bar".
As far I understand asynchronous workflows that is explainable because the setting of value "bar" to variable x is happens normally before the finish of the 1st request.
Is there a way I can put a variable into the return of get (a Observable) with the value of it to the time of the call??
So I want to have "foo" and then "bar" for output.