In a component I have an object as below:
statuses = {
'accepted' : 'در حال حرکت به سمت مبدا',
'picking' : 'در حال دریافت مرسوله',
'delivering' : 'در حال حرکت به سمت مقصد',
'delivered' : 'در حال تحویل دادن مرسوله'
};
and in the html:
<div *ngFor="let order of orders;">
<div class="col-md-12 signle-order-div">
<div class="col-md-4">
<fa name="motorcycle" rotate="horizontal"></fa>
<label>{{order.status.last_status}}</label><!-- this gives 'picking' -->
</div>
</div>
</div>
How do I print the relevant array index from the statuses object instead of picking
?