-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
checklist-model not working when ng-if is used on the same element #109
Comments
Could you please prepare a JSFiddle or Plunker example? Thanks! |
Sorry. I've provided all the information you need. |
If you prepare a test case, a JSFiddle or Plunker example, it would help in solving the issue and find a fix much faster. Otherwise, it could take a while until I do this myself. Thank you. |
I created a jsfiddle and I can reproduce the issue: http://jsfiddle.net/beradrian/3gwomn97/. I will work on it. |
I've reproduced the same issue with ng-switch |
Same issue here. My solution was wrap the input element with a div, and use ng-if in the div |
Please fix this bug! |
Any news on this issue? |
As told by @leskeg, the issue gets resolved by moving ng-if condition to a wrapper. |
@sebastian-zarzycki u can solve this problem by use checklist-model="$parent.form.model" instead of |
HTML
JS
This makes checklist-model attr disappear when looking in generates source, and model changes are not filled in properly. It can be fixed by putting the ng-if in the parent element. Apparently something with scope/linking isn't clicking?
The text was updated successfully, but these errors were encountered: