i export data from json to the text is show and everything good in HTML but when i need to export the image from json I can't show it in HTML
how can I put this image JSON in ionic framework
https://jsonplaceholder.typicode.com/photos
"thumbnailUrl": "http://placehold.it/150/771796"
my codes for the rest api provider
getImg() {
return new Promise(resolve => {
this.http.get(this.apiUrl+'/photos').subscribe(data => {
resolve(data);
}, err => {
console.log(err);
});
});
}
page.ts
getImg() {
this.restProvider.getImg()
.then(data => {
this.photos = data;
console.log(this.photos);
});
}
page.html
<ion-content>
<ion-list inset>
<ion-item *ngFor="let user of users">
<h2>{{user.name}}</h2>
<p>{{user.email}}</p>
<img [src]="photo.thumbnailUrl">
</ion-item>
</ion-list>
</ion-content>
*ngFor="let user of users"and exacting an image fromphotosarray?where you definephotoinphoto.thumbnailUrl?