Selectable into array

i using selectable to choice currency code and when I select currency , example i select ‘AUD’ but the header.state[2][‘value’] always result empty. and syntax code as below

html :

Currency Code
<ionic-selectable [(ngModel)]=“header.state[2][‘value’]” itemValueField=“value”
itemTextField=“internalValue” [items]=“ports” [canSearch]=“true”
[hasInfiniteScroll]=“true” (onSearch)=“searchCrcd($event)”
(onInfiniteScroll)=“getMoreCrcd($event)”>

on page.ts
header= {
state:[
{
controlID: “24”,
value: ‘’
},
{
controlID: “715”,
value: ‘’
},
{
controlID: “649”,
value: ‘’
},
]
};

how to add value into header.state[2][‘value’] ? the result should be header.state[2][‘value’]=‘AUD’

If you don’t get any better answers, I would suggest rearchitecting this using a FormControl. Digging so deeply into a complex object with ngModel seems too tightly coupled and brittle.

thank you for your reply. I found it when that change i am using function