I have the following:
<div *ngFor="let item of order.items">
I need to display the result, for example:
{{item.product.category.availability.selected.name.value}}
{{item.product.category.availability.selected.id.value}}
I would like to ideally assign this whole portion to a variable inside my template:
let item = item.proproduct.category.availability.selected
So I can display data like this instead throughout my template (way shorter):
{{item.name.value}}
{{item.id.value}}
Is there a way to do this?