@ -53,6 +53,7 @@
<ng-container *ngFor="let dish of mealDishs;let dishIndex = index">
<ng-container *ngIf="dish['mealIndex'] === mealIndex && dish['day'] === day">
<ng-container *ngFor="let food of dish['items'];let first = first;">
<tr>
<td *ngIf="first" [rowSpan]="dish['items'].length ">
<div class="flex justify-between">
@ -56,6 +56,7 @@
</div>
</th>
{{days | json}}
<th *ngFor="let day of days">
<div>
<div class="table-day-row">
@ -57,6 +57,7 @@ export class IngredientPreviewComponent {
})
)
.subscribe(([dishs, basic]) => {
console.log(dishs, basic);
this.days = Array.from({ length: basic.day }, (_, i) => i + 1);
this.getStandardName(basic.nutrient);
this.basic = basic;