mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix list item delete test
This commit is contained in:
@@ -232,7 +232,7 @@
|
||||
};
|
||||
$scope.deleteListItem = function(item, index) {
|
||||
console.log('onDelete from the "list" on-delete attribute', item, index);
|
||||
$scope.items.splice($scope.items.indexOf(item), 1);
|
||||
$scope.items.splice(index, 1);
|
||||
};
|
||||
$scope.onReorder = function(el, start, end) {
|
||||
console.log('On reorder', el, start, end);
|
||||
|
||||
Reference in New Issue
Block a user