如图。。。我点那个✅符号,然后想让这一行立即消失。。如何做呢??要在http subscribe中在嵌套一个http request吗?
var whatIndex = null;
angular.forEach($scope.rows, function(cb, index) {
if (cb.ID === ID) {
whatIndex = index;
}
});
$scope.rows.splice(whatIndex, 1);
2.
删除当前选中的项目:
Remove an item //this one is dynamically generated link using ng-repeat
$scope.remove = function (item) {
$scope.retrieveddata.splice(item, 1);
}
$scope.remove = function (item) {
$scope.retrieveddata.splice(item, 1);
}