我试图得到一个产品列表,我正在遇到一个问题,因为它是一个数组,内部数组多个数组用于如何迭代我试过的对象内的数组但是在html中显示对象对象告诉任何人如何迭代数组?
/*
@Copyright Notice:
@(#)
@Type: TS
@For: create-accont.html.
@Description : getInitiallyCategoryProducts function for get the list of products
*/
getInitiallyCategortProducts(categoryKeyId , subCategoryKeyId){
let self = this;
if(categoryKeyId != undefined) {
let object = {
categoryKeyId : categoryKeyId,
subCategoryKeyId : subCategoryKeyId
}
//show the laoder after load the products
let loading = self.loadingCtrl.create({
content: "Loading..."
});
loading.present();
//call function for checkDesingNumberInGCP for check desing number is exist or not
self.sellerAuthData.getProductsByCategoryWiseInGCP(function(isSuccess, data) {
if(data.isSuccess && data.UserProductList) {
self.sellerProductListViaCategory = data.UserProductList;
//Disable the loader after response is generated
loading.dismiss();
} else {
console.log("isCreated false from the API");
}
}, object);
} else {
console.log("object is undeined or null");
}
}
<ion-list style=" margin-top: 48px;">
<ion-card *ngFor="let userProduct of sellerProductListViaCategory">
<ul class='imageList'>
<span *ngFor="let productSet of userProduct.sellerProductSetDto">
<li *ngFor="let imageURL of productSet.setImageURLList">
<img src="{{imageURL}}">
</li>
<ion-icon ios="ios-close-circle" md="md-close-circle"></ion-icon>
</span>
</ul>
</ion-card>
</ion-list>