@if (customers && customers.length) {
@for (customer of customers; track trackbyService.customer($index, customer)) {
{{ customer.firstName | capitalize }} {{ customer.lastName | capitalize }}
@if (customer.orders && customer.orders.length) {
@for (order of customer.orders; track trackbyService.order($index, order)) {
| {{order.productName}} |
{{ order.itemCost | currency:'USD':'symbol' }} |
}
| |
{{ customer.orderTotal | currency:'USD':'symbol' }}
|
} @else {
No orders found
}
}
} @else {
No customers found
}