Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Select2 in Ember.js

I'm really having difficulty integrating select2 in ember.

I want to transform this:

<input type="hidden" value=user />

into a search input with ajax using select2 and bind the selected result to the user attribute in model.

Please help.

like image 718
Melvin Avatar asked Jul 09 '26 08:07

Melvin


1 Answers

{{view}} is deprecated in ember 2.0 +

I found this project that emberfies select2 into a component

ember install ember-select-2

or this one

ember install ember-select-guru

Edit 1:

There is also a more active nativley built one and you should probably use this one

ember install ember-power-select

repo

like image 117
Marcom Avatar answered Jul 11 '26 16:07

Marcom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!