Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update or set select2 value manually #120

Open
Dhamu143 opened this issue Mar 29, 2018 · 0 comments
Open

update or set select2 value manually #120

Dhamu143 opened this issue Mar 29, 2018 · 0 comments

Comments

@Dhamu143
Copy link

i need to display default specific value in ng2 select 2 but every time it displays the first value.
my code as below.

<select2 [attr.tabindex]=4 [data]="exampleData" [value]=startValue [cssImport]=true (valueChanged)="changed($event)" class="pricelist1">

even if i select bydefault value of startValue 255 it takes first value of the array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant