Ionicons in toderp

This commit is contained in:
Max Lynch
2013-10-09 22:32:23 -05:00
parent b8bb9b7e4a
commit 5d165a8310
5 changed files with 19 additions and 11 deletions

View File

@ -92,6 +92,11 @@
angular.module('navTest', ['ionic.ui.list', 'ngAnimate'])
.controller('TestCtrl', function($scope) {
var removeItem = function(item) {
// Remove ourselves
$scope.items.splice($scope.items.indexOf(item), 1);
};
$scope.items = [
{
text: 'Item 1',
@ -102,10 +107,7 @@
buttons: [{
text: 'Kill',
type: 'button-danger',
buttonClicked: function(item) {
// Remove ourselves
$scope.items.splice($scope.items.indexOf(item), 1);
}
buttonClicked: removeItem,
}]
},
{
@ -115,7 +117,8 @@
icon: 'icon-chevron-right',
buttons: [{
text: 'Kill',
type: 'button-danger'
type: 'button-danger',
buttonClicked: removeItem,
}]
},
{
@ -125,7 +128,8 @@
icon: 'icon-chevron-right',
buttons: [{
text: 'Kill',
type: 'button-danger'
type: 'button-danger',
buttonClicked: removeItem,
}]
},
{
@ -135,7 +139,8 @@
icon: 'icon-chevron-right',
buttons: [{
text: 'Kill',
type: 'button-danger'
type: 'button-danger',
buttonClicked: removeItem,
}]
}
];