hi Mo,
 

> NOTE: To reiterate, the key here is to push the video object to your array 
> AFTER the async $http completes.
>
Not really needed. If you look at my sample, it will just work, and the 
table gets enriched with thumbnails as they come in. There is no technical 
need to do async outside an repeat. It all depends on use-case.
I do agree that you shouldn't have $http insiside an controller, you are 
better of if you put it in a factory. But putting asynchronous  in a 
factory, doesn't make it work synchronous, so the problem stays the same.
When you make the thing like you propose, the user has to wait for every 
thumbnail to arrive, before getting anything on screen. I think that's a 
bad idea. Might work fine if you have up to 4 thumbs, but imagine your 
search return 100 hits? 
(and there you have an reason too be able to cancel $http requests. That's 
challenging in angular 1.x ;) )


Regards
Sander
 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to