From 2a9a6a89077712bb8bd28f336a9898280fd7883d Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sat, 4 Sep 2021 14:11:17 +0200 Subject: [PATCH] rewrite the assignment to composition API --- .../src/App.vue | 55 +++++++++++-------- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/2021-09-04_composition-assignment-2-problem/src/App.vue b/2021-09-04_composition-assignment-2-problem/src/App.vue index 53ea710..9b2410e 100644 --- a/2021-09-04_composition-assignment-2-problem/src/App.vue +++ b/2021-09-04_composition-assignment-2-problem/src/App.vue @@ -3,10 +3,10 @@

Expense Tracker

-
Available Funds: {{ availableFunds }}
-
Total Expenses: {{ currentExpenses }}
+
Available Funds: {{ data.availableFunds }}
+
Total Expenses: {{ data.currentExpenses }}

-
Funds left: {{ remainingFunds }}
+
Funds left: {{ data.remainingFunds }}
@@ -20,31 +20,38 @@ @@ -99,4 +106,4 @@ button:active { background-color: #5819ac; border-color: #5819ac; } - \ No newline at end of file +