vitalets / checklist-model

AngularJS directive for list of checkboxes
http://vitalets.github.io/checklist-model
MIT License
1.05k stars 206 forks source link

What if I need to select only one value, not multiples ? #144

Closed Vikasg7 closed 8 years ago

Vikasg7 commented 8 years ago

All the examples covers the scenario of selecting multiple items. I need a functionality where I select one check box, other previously select checkbox should lost its select. So we could always select only one check box. If this functionality is already there and I have missed it. Please let me know. !! Thanks in advance.

beradrian commented 8 years ago

You can implement it using checklist-change to run code after the change and deselect the previous one. But wouldn't this be better implemented using radio buttons?

Vikasg7 commented 8 years ago

http://stackoverflow.com/a/38194899/4850220 I made this better one. Achieving the same thing.

Regards,