Why not just use the popular select2
or chosen
and/or their angular wrapper equivalents?
angular-multiselect is tiny since it has NO DEPENDENCIES - Including NO jQuery! It's pure javascript/AngularJS!
Dependencies can have a large footprint and thus affect performance:
angular-multiselect is 34kb, 12kb compressed in TOTAL (since there are no other dependencies)!
So, IF you're already using jQuery anyway (in which case jQuery doesn't really add any additional footprint for multiselect as it's already there) and/or you want the more robust features that chosen/select2 offer, it's probably better to stick with select2/chosen. But if you're looking for a more lightweight multi select and are on your way to or have already completely eliminated jQuery from your Angular app, this will do the job nicely.
http://jackrabbitsgroup.github.io/angular-multiselect/
lesshat
(for multiselect.less)See bower.json
and index.html
in the gh-pages
branch for a full list / more details
"angular-multiselect": "latest"
to your bower.json
file then run bower install
OR run bower install angular-multiselect
app.js
) - jackrabbitsgroup.angular-multiselect
See the gh-pages
branch, files bower.json
and index.html
for a full example.
See the multiselect.js
file top comments for usage examples and documentation
https://github.com/jackrabbitsgroup/angular-multiselect/blob/master/multiselect.js