Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Selectable into array

$
0
0

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’

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>