Using Angular CLI 6 for a Single Page Application

What I need to do is the following
make an HTTP post request. I will get an OK back. The results or the side 
effect will take sometime before is ready for processing.
I will have to poll for results readiness, lets say once a second.

To poll for the results, I need to make an HTTP get call and check the 
results. If results are complete, I am done.
Otherwise I will have to continue to poll..

What I have done, I have two obserables, one for the HTTP post and one for 
HTTP get call. 
I use a setTimeout for the polling. This organization for the code, when I 
hit the setTimeout, I go to never never land I have to kill the 
application...

Any hints on this problem?

-- 
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