Comments (14)
I'd love to, but I have no plans to do so myself until it comes out of
beta. Will happily start accepting patches on a branch though.
On 10 Mar 2015 18:31, "yellow1912" [email protected] wrote:
The new select2 introduces quite a few BC, among them is the deprecation
of hidden field in various places. I wonder if this plugin is ready for 4.x
and if not do you have any plan to support it?—
Reply to this email directly or view it on GitHub
#18.
from angular-select2.
4.x has been in the RC phase, it looks like a big change and introduce some API changes that may break this component. Especially the .select2('val') has been removed and favor $.val() and opts.query has been deprecated and favor new DataAdapter.
I try to hack a little on the current code, but failed. This component is a little bit complicated than I think...
from angular-select2.
Hi everyone!
I just discovered this plugin (angular-select2) and noticed this ticket was open. I wouldn't mind taking a shot at converting this over, as long as there are somewhat-updated tests that I can bounce changes off of. I think this plugin might be easier to convert, as long as there aren't any major hacks, and I wouldn't mind replacing the now-deprecated ui-select2
in the AngularJS line of the Select2 readme.
from angular-select2.
Actually, I'm using the new select 2 4.x right now, and I discover that for the most part you don't even need a custom angularjs directive for it. The reason is that they moved from using input to select completely so you can simply plug the ngModel to that select element and it works nicely. There may be some edge cases but I haven't encountered yet.
from angular-select2.
Right now the Select2 4.0 is out of beta. Any estimation to make angular-select2 compatible with Select2 4.0 ?
https://select2.github.io/announcements-4.0.html
from angular-select2.
@rbatllet I'm guessing that it'll be quite a bit of work. Given that select2 3.x works perfectly fine, it's not a priority for us to upgrade (plenty of other work to do).
Anyone who wants to help out is welcome to, I'll gladly setup a branch where we can start working and will happily review/accept pull requests. But for now I (nor my company) won't be making the effort myself.
from angular-select2.
@rubenv Please go forward setting up that branch so that PRs can be made against it, thanks
from angular-select2.
I started here: https://github.com/motin/angular-select2/tree/select2-4.0-support-wip feel free to chip in :)
from angular-select2.
It's basically "done". https://github.com/motin/angular-select2/tree/select2-4.0-support-wip JS Bin here: https://jsbin.com/gipezidemi/edit?html,js,output
To make it work with select2 4.0 showed out to be a minor task, thanks to the fact that the underlying element is now a select-element and not an input-element. Most of the directive's code could be removed, and the select2 examples from the readme works as expected.
However, I have not updated any of the tests in the repo (nor will I), and there are probably additional features that were included in the previous angular-select2 that are now broken, so additional work may need to be done. Anyway, it is a start, let me know when there is a branch for 4.0 support work against which I can submit a PR. Thanks.
from angular-select2.
Am currently traveling but will do so soon. Thanks for picking this up!
On Sep 2, 2015 8:16 AM, "Fredrik Wollsén" [email protected] wrote:
It's basically "done".
https://github.com/motin/angular-select2/tree/select2-4.0-support-wip JS
Bin here: https://jsbin.com/gipezidemi/edit?html,js,outputTo make it work with select2 4.0 showed out to be a minor task, thanks to
the fact that the underlying element is now a select-element and not an
input-element. Most of the directive's code could be removed, and the
select2 examples from the readme works as expected.However, I have not updated any of the tests in the repo (nor will I), and
there are probably additional features that were included in the previous
angular-select2 that are now broken, so additional work may need to be
done. Anyway, it is a start, let me know when there is a branch for 4.0
support work against which I can submit a PR. Thanks.—
Reply to this email directly or view it on GitHub
#18 (comment)
.
from angular-select2.
+1
from angular-select2.
@motin, great simple solution
from angular-select2.
I've pushed a v4
branch, pull requests are welcome. Once this branch is stable, we'll merge it to master and we'll split off a maintenance branch for the older select2 variant.
from angular-select2.
What about v4 support?
from angular-select2.
Related Issues (20)
- Not watching model change in multiple
- Grouping not working
- Losing selection in multiple with custom query
- Controller 'select', required by directive 'ngOptions', can't be found! HOT 4
- Matcher is hardcoded HOT 3
- TypeError: element.select2 is not a function HOT 6
- TypeError: d.select2 is not a function HOT 7
- Add Angular 1.5.x compatibility HOT 2
- how about ditching bower in favour of npm
- virtual keyboard popup on phones HOT 3
- Can't find or understand how to add an "on select" event HOT 1
- fix(directive): priority with value 1 blocks proper loading when inside another directive
- How can I catch keydown event?
- Using angular-select2 with ES6
- Bower Laravel Angular-Select2 problem
- HTML5 required attribute HOT 2
- How to delay http request ?
- Multiple select input search is readonly and disabled in mobile view
- form-control visual issue
- TypeError: d.select2(...).find(...).sortable is not a function angular
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-select2.