I am trying to write a code where a user adds a row to a tab, then selects an option from a combobox and enters a description for it. Once that description is entered, I don't want that option to appear in the combobox for the next row. How can I do that while using *ngFor?
HTML:
<ng-container matColumnDef="Room">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Oda </th>
<td mat-cell *matCellDef="let row; let i=index">
<span *ngIf="EditIndex != i">{{row.LabAnalysisPicture?.EnvironmentName}}</span>
<mat-form-field *ngIf="EditIndex == i">
<mat-select required name="Room" [(ngModel)]="row.Room"
[compareWith]="compareObjects">
<mat-option *ngFor="let prm of environmentListPicture" [value]="prm">
{{prm?.EnvironmentName}}
</mat-option>
</mat-select>
</mat-form-field>
</td>
</ng-container>