2
http://plnkr.co/edit/WFONNlAEIeN8K9DEJCqV?p=catalogue斜面删除 - 角
我装盘到删除/移除仅所选择的行 但没有成功。
remove函数
$scope.removeTrainee = function(trainee){
var removeTrainee = $scope.trainees.indexOf(trainee);
$scope.trainees.splice(removeTrainee, 1);
};
select函数
$scope.selectedRow = null; // initialize our variable to null
$scope.setClickedRow = function(index){ //function that sets the value of selectedRow to current index
$scope.selectedRow = index;
};
试图实现在selectedrow NG-IF或& &标志 什么都没有
删除NG点击功能起作用,但不适用于选定的。 帮助,请
http://plnkr.co/edit/95naBtiya9FXV7hWGPXM?p=preview – Josito
惊喜!工作,谢谢你! – torresito