From 8c672a568ad096f28d4c3a2ba95b01ecc30cc3ce Mon Sep 17 00:00:00 2001
From: Cristiano Magro <cristiano.magro@vola.it>
Date: Thu, 26 Dec 2024 23:51:23 +0100
Subject: [PATCH] draw bar healt after attack

---
 03 - lists conditional/lists-cond-01-starting-setup/app.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/03 - lists conditional/lists-cond-01-starting-setup/app.js b/03 - lists conditional/lists-cond-01-starting-setup/app.js
index de49145..d3e2128 100644
--- a/03 - lists conditional/lists-cond-01-starting-setup/app.js
+++ b/03 - lists conditional/lists-cond-01-starting-setup/app.js
@@ -1,11 +1,18 @@
 const app = Vue.createApp({
   data() {
-    return { goals: [] };
+    return { 
+      goals: [],
+      enteredGoal: '',
+     };
+
   },
   methods: {
     addGoal() {
       this.goals.push(this.enteredGoal)
     },
+    removeGoal(idx){
+      this.goals.splice(idx,1);
+    },
   },
 });
 

--
Gitblit v1.8.0