In ngFor i have this:
let orderTracking of orderTrackings
And on some places i display data from orderTrackings, but on one place i have dropdown list.
<select [(ngModel)]="selectDestination" (click)="orderTracking.selectDestination = selectDestination">
<option value=""></option>
<option *ngFor="let destination of destinationsTo" [value]="destination.code">{{destination.displayname}}</option>
</select>
What im trying to do is to add selected value in that specific object in array, because every of that objects might have different values from dropdown. So when i in my .ts file display orderTrackings array to have for example:
orderTracking[0].something = 'something'
orderTracking[0].selectDestination = 1
orderTracking[1].something = 'test'
orderTracking[1].selectDestination = 5
And so on. Any suggestion how can i do that?