Ng2-select: [data] does not work on single or multiple

Created on 23 May 2016  路  3Comments  路  Source: valor-software/ng2-select

Your own example does not display 'Athens' as the selected option on the multiple tab.

Is there a way to manually set the default?

SO: http://stackoverflow.com/questions/37380576/how-to-set-default-for-ng2-select

Most helpful comment

[data] shown in the example on the multiple tab here: https://valor-software.com/ng2-select/ is incorrect. The tag should be [initData] as shown in the readme.

Please correct the example code.

All 3 comments

[data] shown in the example on the multiple tab here: https://valor-software.com/ng2-select/ is incorrect. The tag should be [initData] as shown in the readme.

Please correct the example code.

Is there a way to make it work for a single select? [data] and [initData] didn't work for us.

Using

[initData]="[myInitialData]"

with single select worked for me. [initData] seems to require an array even in single select.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ronzeidman picture ronzeidman  路  3Comments

BenDevelopment picture BenDevelopment  路  5Comments

253936563 picture 253936563  路  5Comments

uzumakinaruto123 picture uzumakinaruto123  路  5Comments

thanhngvpt picture thanhngvpt  路  5Comments