Hi Rahul,

this.http.post("http://192.168.1.93:3000/login",{username:"someone",password:"1234"})
 .subscribe(res => { this.loginStatus = res["msg"] }); 
this.http.post("http://192.168.1.93:3000/dashboard",{data:"nothing"}) 
.subscribe( res => { this.dashboardStatus = res["msg"] } ); 
this.http.post("http://192.168.1.93:3000/logout",{data:"nothing"}) .subscribe( 
res => { this.logoutStatus = res["msg"] });

Those will fire off at the same time and will communicate in parallel with 
your server. So the output is correct. Make sure you do this in order 
instead. That will give you the result you want.

Regards
Sander
​

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to