Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Updating Angular demo to v1.0 of the library #157
Great! You know, the reason why I used $watch in the first place was that I otherwise wasn't able to update the store when one of the checkboxes changed. According to the spec, the store should also be updated when the checkbox on the todo changes its state. However, I just figured out that you can use ng-change for checkboxes to catch that moment. I think back in the days when I wrote that app there was no ng-change that worked for checkboxes. On the other hand, for such a small demo app, I think it's more ideomatic to just leverage $watch in the way we do it here. It's more DRY at least.