Change render for IMG
This commit is contained in:
@@ -11,5 +11,5 @@ export class Product {
|
||||
export class ProductImage {
|
||||
imageID: number = 0;
|
||||
productID: number = 0;
|
||||
image: Blob | null = null;
|
||||
imageSrc: string = "";
|
||||
}
|
||||
@@ -29,7 +29,7 @@ export class CatalogComponent {
|
||||
this.Products.forEach(item => {
|
||||
item.images.forEach(img => {
|
||||
http.get("https://mistox.com/api/productimage/get?ProductID=" + img.productID + "&ImageID=" + img.imageID, { responseType: 'blob' }).subscribe(blob => {
|
||||
img.image = blob;
|
||||
img.imageSrc = URL.createObjectURL(blob);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user