Sequential http calls


#1

Hi -
Inside ngfor loop I am using image tag whose src is loaded from remote url.

Sometimes - It does not load all the images properly. So I am assuming I need to put all the call in sequence.

<div *ngFor="let data of list">   
       <img src="{{data}}"> 
 </div>

Can you tell me how to do that ?


#2

Nobody can say much of anything without seeing how list is populated.


#3

List of array of image url’s like

list = [
http://xxx/x/a.jpg”,
http://xxx/x/b.jpg”,
http://xxx/x/c.jpg”,
http://xxx/x/d.jpg”,
http://xxx/x/e.jpg”,
];


#4

If it’s really static data like that, there’s nothing your app can do. The browser will fetch the images as it would images on any other HTML page.


#5

sounds like connection problems with speed fluctuations or missing chunks during the transmission.