mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Removed item testing thing
This commit is contained in:
2
dist/ionic-angular.js
vendored
2
dist/ionic-angular.js
vendored
@ -216,7 +216,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>' +
|
||||
|
||||
2
js/ext/angular/src/directive/ionicList.js
vendored
2
js/ext/angular/src/directive/ionicList.js
vendored
@ -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>' +
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user