UNPKG

ionic-cordova-gulp-seed

Version:

Ionic & Cordova & Gulp seed with organized code, tests, bower support and some other stuff. Originated from ionic-angular-cordova-seed.

63 lines (57 loc) 825 B
angular.module('ionicApp', ['ionic']) .controller('MyCtrl', function ($scope) { $scope.data = { showDelete: false }; $scope.itemButtons = [ { text: 'Edit', type: 'button-assertive', onTap: function (item) { alert('Edit Item: ' + item.id); } }, { text: 'Share', type: 'button-calm', onTap: function (item) { alert('Share Item: ' + item.id); } } ]; $scope.onItemDelete = function (item) { $scope.items.splice($scope.items.indexOf(item), 1); }; $scope.items = [ { id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }, { id: 5 }, { id: 6 }, { id: 7 }, { id: 8 }, { id: 9 }, { id: 10 } ]; });