-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
63 lines (57 loc) · 825 Bytes
/
Copy pathscript.js
File metadata and controls
63 lines (57 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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
}
];
});