I've been using checklist-model to work with an array of check-boxes with each selected one can be deleted. Everything seems to work fine until I use it inside a ng-repeat.
The problem is, the deleted check-boxes still be there around when I add the track by $index along with the ng-repeat. If I remove that track by, it works fine (but in my real app I need that track by to work).
Here's a plnkr, http://plnkr.co/edit/5082nJfGwlOZaXYb184Z?p=preview
To see the problem, you can follow these steps.
1.Select any check-box you want
2/Delete those selected ones
3.Check the check all button to see,
Now look at the one with track by $index, it will leave some check-box unchecked. If you check it manually, it will have the old value added to the list. This is weird.
I've been using checklist-model to work with an array of check-boxes with each selected one can be deleted. Everything seems to work fine until I use it inside a ng-repeat.
The problem is, the deleted check-boxes still be there around when I add the track by $index along with the ng-repeat. If I remove that track by, it works fine (but in my real app I need that track by to work).
Here's a plnkr, http://plnkr.co/edit/5082nJfGwlOZaXYb184Z?p=preview
To see the problem, you can follow these steps.
1.Select any check-box you want
2/Delete those selected ones
3.Check the check all button to see,
Now look at the one with track by $index, it will leave some check-box unchecked. If you check it manually, it will have the old value added to the list. This is weird.