From c4371db9541bc6463d58193f9a60542e35cc3204 Mon Sep 17 00:00:00 2001
From: Cristiano Magro <cristiano.magro@vola.it>
Date: Sat, 28 Dec 2024 22:51:57 +0100
Subject: [PATCH] binding dei dati in un ciclo for

---
 07 - development setup/vue-cli-01-a-new-vue-project/src/App.vue |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/07 - development setup/vue-cli-01-a-new-vue-project/src/App.vue b/07 - development setup/vue-cli-01-a-new-vue-project/src/App.vue
index 76cb7d5..08bedae 100644
--- a/07 - development setup/vue-cli-01-a-new-vue-project/src/App.vue
+++ b/07 - development setup/vue-cli-01-a-new-vue-project/src/App.vue
@@ -5,15 +5,12 @@
     </header>
     <ul>
       <friend-contact 
-      name="Manuel Lorenz" 
-      phone-number="123" 
-      email-address="cicio@ciccio.it"
-      is-favorite="1"
-      ></friend-contact>
-      <friend-contact
-      name="Jeany Torpedo" 
-      phone-number="123123" 
-      email-address="torpedo@ciccio.it"
+      v-for="friend in friends"
+      :key="friend.id"
+      :name="friend.name" 
+      :phone-number="friend.phone" 
+      :email-address="friend.email"
+      :is-favorite="true"
       ></friend-contact>
     </ul>
   </section>

--
Gitblit v1.8.0