checklist-model icon indicating copy to clipboard operation
checklist-model copied to clipboard

Breaks when ng-repeat is used on the same element as checklist-model.

Open legendarydrew opened this issue 10 years ago • 3 comments

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.

legendarydrew avatar Jan 30 '16 13:01 legendarydrew

I've discovered this is also true for ng-if.

tdhsmith avatar Jun 20 '16 15:06 tdhsmith

Any updates here?

zachcb1 avatar May 14 '18 22:05 zachcb1

facing issue with ng-if ? any hack for this ?

devshafeeque avatar May 17 '19 05:05 devshafeeque