Возможно, вы захотите преобразовать ответ примерно так:
response: any;
let addNewClothes = [{
"addLaundryServices": "4 - Wash",
"add_Main_Categories": "169 - Quilt & Blanket",
"add_Sections": "275 - Quilt types",
"clothesID": 911,
"newClothes": "Medium quilt",
"price": "14"
}, {
"addLaundryServices": "4 - Wash",
"add_Main_Categories": "169 - Quilt & Blanket",
"add_Sections": "275 - Quilt types",
"clothesID": 910,
"newClothes": "Small quilt",
"price": "10"
}];
let {
addLaundryServices,
add_Main_Categories,
add_Sections
} = addNewClothes[0];
this.response = {
addLaundryServices,
add_Main_Categories,
add_Sections,
clothes: addNewClothes.map(cloth => ({
clothesID: cloth.clothesID,
newClothes: cloth.newClothes,
price: cloth.price
}))
}
console.log(response);
Теперь в вашем шаблоне:
<ion-content padding>
<div id="sections">
<h4>{{response.add_Main_Categories}}</h4>
</div>
<div id="sections">
<h5>{{response.add_Sections}}</h5>
</div>
<div id="clothes" *ngFor="let cloth of response.clothes">
<h6>{{clothe.newClothes}}</h6>
</div>
<div id=servicePrice></div>
</ion-content>