Open frndxyz opened 4 years ago
Avoid doing the this.galleryImages.push in favour of:
this.galleryImages = res.map(item => {
return {
small: /api/image/get/${img.imageid}/sm
,
medium: /api/image/get/${img.imageid}/md
,
big: /api/image/get/${img.imageid}
}});
Anywhere you're adding new records, just replace the existing galleryImages.
Avoid doing the this.galleryImages.push in favour of:
this.galleryImages = res.map(item => { return { small:
/api/image/get/${img.imageid}/sm
, medium:/api/image/get/${img.imageid}/md
, big:/api/image/get/${img.imageid}
}});Anywhere you're adding new records, just replace the existing galleryImages.
Thank you!
Avoid doing the this.galleryImages.push in favour of:
this.galleryImages = res.map(item => { return { small:
/api/image/get/${img.imageid}/sm
, medium:/api/image/get/${img.imageid}/md
, big:/api/image/get/${img.imageid}
}});Anywhere you're adding new records, just replace the existing galleryImages.
Thank you
did that fix the problem?
i am using ngx-gallery with angular 9.1.
i am fetching images from web services and building url attaching it like below:
once i move arrow on gallery it shows images otherwise totally blank.