-
Notifications
You must be signed in to change notification settings - Fork 0
/
tab1.page.html
86 lines (80 loc) · 3.08 KB
/
tab1.page.html
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<ion-content >
<div class="main-div ion-padding">
<h1 class="ion-padding">Money Tracker</h1>
<div class="list">
<ion-list>
<ion-item-sliding *ngFor="let transaction of moneyTransactions">
<ion-item>
<ion-label>
{{transaction.title}}
<p [ngClass]="{expense: transaction.type == 'expense', income: transaction.type == 'income'}">{{transaction.subTitle}}</p>
</ion-label>
<p class="amount" [ngClass]="{expense: transaction.type == 'expense', income: transaction.type == 'income'}">${{transaction.amount}}</p>
</ion-item>
<ion-item-options side="end">
<ion-item-option color="danger">
<ion-icon name="trash-outline" (click)="delete_transaction(transaction.id)"></ion-icon>
</ion-item-option>
<ion-item-option color="dark">
<ion-icon name="create-outline" routerLink="/add-edit-data/{{transaction.id}}"></ion-icon>
</ion-item-option>
</ion-item-options>
</ion-item-sliding>
<ion-item-sliding>
<ion-item>
<ion-label>
Gym Membership
<p class="expense">Gym</p>
</ion-label>
<p class="amount">$90</p>
</ion-item>
<ion-item-options side="end">
<ion-item-option color="danger">
<ion-icon name="trash-outline"></ion-icon>
</ion-item-option>
<ion-item-option color="dark">
<ion-icon name="create-outline" routerLink="/add-edit-data/edit"></ion-icon>
</ion-item-option>
</ion-item-options>
</ion-item-sliding>
<ion-item-sliding>
<ion-item>
<ion-label>
Monthly Salary
<p class="income">Job</p>
</ion-label>
<p class="amount">$2100</p>
</ion-item>
<ion-item-options side="end">
<ion-item-option color="danger">
<ion-icon name="trash-outline"></ion-icon>
</ion-item-option>
<ion-item-option color="dark">
<ion-icon name="create-outline" routerLink="/add-edit-data/edit"></ion-icon>
</ion-item-option>
</ion-item-options>
</ion-item-sliding>
<ion-item-sliding>
<ion-item>
<ion-label>
Bonus Salary
<p class="income">Job</p>
</ion-label>
<p class="amount">$200</p>
</ion-item>
<ion-item-options side="end">
<ion-item-option color="danger">
<ion-icon name="trash-outline"></ion-icon>
</ion-item-option>
<ion-item-option color="dark">
<ion-icon name="create-outline" routerLink="/add-edit-data/edit"></ion-icon>
</ion-item-option>
</ion-item-options>
</ion-item-sliding>
</ion-list>
</div>
<ion-fab-button color="dark">
<ion-icon name="add-outline" routerLink="/add-edit-data/add"></ion-icon>
</ion-fab-button>
</div>
</ion-content>