amitava82 / angular-multiselect

[NOT MAINTAINED]Native AngularJS multiselect directive
http://amitava82.github.io/angular-multiselect
MIT License
140 stars 124 forks source link

Fixed Issue #5 #9

Closed ghost closed 10 years ago

ghost commented 10 years ago

Might not be the best way to do so but it kinda works. Here's a PLNKR that demonstrates. http://plnkr.co/edit/MjKBW2TpASsMo5xoui0Z?p=preview

One thing it doesn't handle is if the model is set to null. You can see I changed the clear() function to set the selectedCars = [] instead of selectedCars = null. Anyways just submitting this to help jumpstart your fix; I'm sure you'll know a better way to do so.

amitava82 commented 10 years ago

Thanks but the demo plunker not working as intended :\