[AngularJS] Re: I have tried Forkjoin, chained observables and using Async/await but this is not working the way I need it. Need to fake synced HTTP call.

2018-03-04 Thread Richard Freedman
Have you seen this example (not 
mine): http://embed.plnkr.co/bx8eGvIFWhqdzCqpB7fb

On Saturday, March 3, 2018 at 12:08:58 AM UTC-5, bicob...@gmail.com wrote:
>
> Could not find the archives to search ... I have tried Forkjoin, chained 
> observables and using Async/await but this is not working the way I need 
> it. I know I have to think differently with Angular 2+ and I may get there 
> but for now I need to process an HTTP call sequentially, wait until the 
> observable is back and then continue but all the things I tried were close 
> but no cigar, even using promises.
>
> I have a method that inserts rows if validation (in another method) 
> passes, I do an HTTP call to find out if the row id already exists and if 
> everything is good returns to the caller and inserts a row... What should I 
> be looking at? Any help would be greatly appreciated.
>
> Thanks   
>

-- 
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: I have tried Forkjoin, chained observables and using Async/await but this is not working the way I need it. Need to fake synced HTTP call.

2018-03-02 Thread Sander Elias
Hi Bico Bielich,

You can not "fake" synchronicity with async primitives. Can you tell me a 
bit more about what it is you are trying to achieve?
I suspect you can solve it with the async pipe and a *ngIf, but with the 
details, you are providing that is not much more as a guess.

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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.