我遇到问题,为所选的每个复选框提供唯一ID。我不确定我是否已经正确地做到了。我无法将所选复选框打印到view-attraction.html
letter not in {'X', 'O'}
<input type="checkbox" ng-model=a.selected value={{a.attractionName}} name={{a.attractionName}} id={{a.id}}>
$scope.selectAttraction = function()
{
var selected = '';
for (var i = 0; i < attractions.length; i++) {
if(attraction[i].selected){
selected += attraction[i].attractionName;
}
}
};