javascript - Checkbox from ajax doesn't appear in angular scope -
i have structure
<tr ng-repeat="load in loads"> <td><input type="checkbox" name="selected[]" ng-model="selected[load.id]" /></td> </tr>
that comes ajax request. if click checkbox , press submit button don't see "selected" model $scope. i've created static checkbox outside loop , 1 in scope. there i'm missing ajax content?
as you've said in comment $scope.selected
undefined
try initialize it.
add contoller
$scope.selected = {};
take @ plunkr, should solve problem, if understood correctly
Comments
Post a Comment