1
!! responce를 가져 오는 동안 HTML에서 내가 편집 페이지에서 내가 모델이 배열에 알엇 밀어 시도편집 모드에서 확인란이 선택되지 않은 상태에서 angulargs에서 ng-check가 작동하지 않습니다.
<input type="checkbox" ng-model="overallfeedback" ng-change="collectFeedback(overallfeedbackElg, $index)" ng-checked="{{collectlistbla[$index]}}">
NG-변경이 ...
$scope.collectFeedback = function(oveallfeedbackElg, index){
if($scope.collectlistbla.hasOwnProperty(index))
$scope.collectlistbla.splice(index, 1, oveallfeedbackElg);
else
$scope.collectlistbla.push(oveallfeedbackElg);
console.log($scope.collectlistbla);
};
이 .....
console.log(response.overallfeedback);//true,true,true,true,true
$scope.collectlistData = response.overallfeedback;
$scope.collectlistbla= $scope.collectlistData.split(',');
console.log($scope.collectlistbla);//["true", "true", "true", "true", "true"]
내가 덕분에 ... 도움을 ... 몇 가지 실수를하고해야 advance
변화를 당신의'NG-확인 = "{{collectlistbla [$ 지수]}}"'에'NG-확인 = "collectlistbla [$ 지수]"'시도 –
오 ~ 너 정말 고맙다. –