2
http://plnkr.co/edit/WFONNlAEIeN8K9DEJCqV?p=catalogueカント削除 - 角度
私は削除するtraying /のみ選択された行 が、ノー成功を削除します。セレクト機能
$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;
};
はNG-IFまたは& &記号 でNGクリックしていない何も
削除にselectedrowを実装しようとした
remove関数
$scope.removeTrainee = function(trainee){
var removeTrainee = $scope.trainees.indexOf(trainee);
$scope.trainees.splice(removeTrainee, 1);
};
機能は動作しますが、選択したものとは一致しません。ので、あなたのfuncionはこのようなものでなければなりませんあなた$scope.selectedRow
を選択した行を取るために 助けてください
http://plnkr.co/edit/95naBtiya9FXV7hWGPXM?p=preview – Josito
amaizing!働いて、ありがとう! – torresito