Ckeckbox tagged with Angularjs

Asked

Viewed 60 times

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:

http://jsfiddle.net/8eepu0o8/

  • Without knowing the shape of what you’re getting, it’s kind of hard for us to help you..

  • Add options to your checkboxes ng-true-value="true" and ng-false-value="false". Also check that when recovering the json value the value true changes to "true" (string) or 1 (inteiro) or "1" (string).

  • 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.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.