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

Popular posts from this blog

Receive udp packets in android gstreamer -

php - Extract Text from HTTP referer -

matplotlib - PYTHON: Annotate boxes disapear dependant on range -