Что-то вроде этого?
for i in xrange( someBigNumber ):
try:
doSomethingThatMightFail()
except SomeException, e:
continue
doSomethingWhenNothingFailed()
Вы можете вычислить итоговую сумму после того, как получите данные в orderList $:
total = 0;
this.orderList$.map(value =>{
this.total = this.total + value.price;
});
И в HTML за пределами ion-list
:
<ion-item>
<ion-label text-wrap>
<p class="pr" style="font-weight: bold; color: black">Total :</p><p class="pr" style="color: red"> {{total}}</p>
</ion-label>
</ion-item>