This is my json data:
I want to access marked key (fundAllocated) in interpolation but I am not able to access it. It is in schemeFunds array. How can I access it?
This is what I tried:
<ng-container *ngIf="financialManagementData && financialManagementData.length">
<tr *ngFor="let fManagement of financialManagementData">
<td>{{fManagement.name}}</td>
<td>
<ng-container *ngIf = "fManagement['selectedScheme']; else showFundAmount;
let i = index">
<div class="form-group mb-0">
<div class="d-flex justify-content-center">
<div>
<input type="text" class="form-control fund-amount height-30"
[(ngModel)]="fManagement.fundAmount" name="fundAmount">
</div>
<div>
<button class="btn btn-primary btn-sm color-white mb-0"
(click)="fManagement['selectedScheme'] =
fManagement['selectedScheme'];">
Save
</button>
</div>
</div>
</div>
</ng-container>
<ng-template #showFundAmount>
<div class="d-flex justify-content-center">
<div class="fund-amount">
{{fManagement['schemeFunds']['fundAllocated']}}
</div>
<span class="text-primary f_16 c_p">
<i class="fas fa-edit" (click)="fManagement['selectedScheme'] = !
fManagement['selectedScheme']; checkIsEditable(fManagement)"></i>
</span>
</div>
</ng-template>
</td>
<td>{{fManagement.fundUtilized}}</td>
<td>{{fManagement.balance}}</td>
<td>
<button class="btn btn-primary btn-sm color-white mb-0"
(click)="createTransaction(fManagement)">
Create Transaction
</button>
</td>
</tr>
</ng-container>
