Removed item testing thing

This commit is contained in:
Max Lynch
2013-10-09 21:08:12 -05:00
parent a3c3c78470
commit e1bfd2550e
3 changed files with 3 additions and 4 deletions

View File

@ -34,7 +34,7 @@ angular.module('ionic.ui.list', ['ionic.service', 'ngAnimate'])
animation: '='
},
template: '<ul class="list" ng-class="{\'list-editing\': isEditing}">' +
'<list-item ng-repeat="item in items | filter:{hide:\'false\'}" canDelete="item.canDelete" canSwipe="item.canSwipe" animation="my-repeat-animation">' +
'<list-item ng-repeat="item in items" canDelete="item.canDelete" canSwipe="item.canSwipe" animation="my-repeat-animation">' +
' {{item.text}}' +
' <i class="{{item.icon}}" ng-if="item.icon"></i>' +
'</list-item>' +

View File

@ -105,8 +105,7 @@
type: 'button-danger',
buttonClicked: function(item) {
// Remove ourselves
//$scope.items.splice($scope.items.indexOf(item), 1);
item.hide = true;
$scope.items.splice($scope.items.indexOf(item), 1);
}
}]
},