checklist-model
checklist-model copied to clipboard
Breaks when ng-repeat is used on the same element as checklist-model.
I've just been working on a template, and came across an issue where the following code didn't update the associated model:
<input type="checkbox" ng-repeat="term in terms"
checklist-model="vmc.model.filters"
checklist-value="term.slug">
I then found that placing the checkbox inside the ng-repeat solved the problem.
<span ng-repeat="term in terms">
<input type="checkbox" checklist-model="vmc.model.filters" checklist-value="term.slug">
</span>
In terms of reducing the number of elements on the page, it would be great if ng-repeat could be used on the same element, but for anyone else coming across this problem I wanted to help them out.
I've discovered this is also true for ng-if.
Any updates here?
facing issue with ng-if ? any hack for this ?