0
Good afternoon I have an HTML structure mounted inside an ng-repeat that creates horizontal and vertical ckeckboxes, that is, a multidimensional array. When I click on one, I have to save in the bank. So far so good, the problem is to bring these checkbox marked, because in the method that I bring the results, the model array gives me as undefined. Follow the link of the codes:
Without knowing the shape of what you’re getting, it’s kind of hard for us to help you..
– MoshMage
Add options to your checkboxes
ng-true-value="true"
andng-false-value="false"
. Also check that when recovering the json value the valuetrue
changes to"true" (string)
or1 (inteiro)
or"1" (string)
.– Eduardo Lelis
I’m having the same problem, but your solution didn’t work @Eduardolelis, puts ng-true-value="true" and ng-false-value="false" in the field.
– GustavoSevero