Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
legendarydrew opened this issue Jan 30, 2016 · 3 comments
Open
Labels

Comments

@legendarydrew
Copy link

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.

@beradrian beradrian added the bug label Feb 1, 2016
@tdhsmith
Copy link

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

@zachcb1
Copy link

zachcb1 commented May 14, 2018

Any updates here?

@devshafeeque
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants