JSON structure,
[
{'col 1':'false','col 2':'false','col 3':'false'},
{'col 1':'false','col 2':'false','col 3':'false'},
{'col 1':'false','col 2':'false','col 3':'false'},
{'col 1':'false','col 2':'false','col 3':'false'}
]
Please note the key have space in it.
In controller i'm changing it to a scope object as,
$scope.myArr = angular.fromJson(jsonStringAsAbove);
My html code,
<div class='row' data-ng-repeat='i in myArr'>
<table class='col-xs-12' style='overflow:auto;border:1px solid black;' >
<tr>
<td style='width:100px;' data-ng-repeat='o in i'>
<input type='checkbox' data-ng-model='o' />
</td>
</tr>
</table>
</div>
But, if I select the check box, the myArr is not changed properly. I suspect the data-ng-model which I'm binding to the input element is not proper. How can I bind the input element so that the original array will be updated to true or false based on the check box selected?