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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -