vitalets / checklist-model

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

Checking changes in checklisValue not working for static object #116

Closed colindeclue closed 8 years ago

colindeclue commented 8 years ago

If I set my object in the html (e.g., from a razor view) like so:

<input type="checkbox" checklist-model="selected" checklist-value="{'id': '@link.Id', 'title': '@link.Title'}" checklist-comparator=".id"/> @link.Title

Then it gets into a loop digesting when checking to see if the value has changed. Needs to respect the checklest-comparator?

beradrian commented 8 years ago

Could you create an example in jsfiddle or something similar?

joostbaptist commented 8 years ago

My pull request https://github.com/vitalets/checklist-model/pull/120 will fix this.

beradrian commented 8 years ago

I will close this issue as the PR fix was merged.