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/index.html |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/03 - lists conditional/lists-cond-01-starting-setup/index.html b/03 - lists conditional/lists-cond-01-starting-setup/index.html
index 9cabc50..2793242 100644
--- a/03 - lists conditional/lists-cond-01-starting-setup/index.html
+++ b/03 - lists conditional/lists-cond-01-starting-setup/index.html
@@ -18,12 +18,17 @@
     </header>
     <section id="user-goals">
       <h2>My course goals</h2>
-      <input type="text" v-model="enteredGoal"/>
+      <input type="text" v-model="enteredGoal" />
       <button @click="addGoal">Add Goal</button>
-      <p v-if="goals.length === 0">No goals have been added yet - please start adding some!</p>
+      <p v-if="goals.length === 0">
+        No goals have been added yet - please start adding some!
+      </p>
       <ul v-else>
-        <li>Goal</li>
+        <li v-for="(goal, idx) in goals" @click="removeGoal(idx)">{{idx}} - {{goal}}</li>
       </ul>
+      <!-- <ul>
+        <li v-for="(value, key) in {nome: 'cristiano', cognome: 'magro'}">{{key}}: {{value}}</li>
+      </ul> -->
     </section>
   </body>
 </html>

--
Gitblit v1.8.0