From 6ea2a289bf1344fbf016013f9461ec9d4b46ec84 Mon Sep 17 00:00:00 2001
From: Cristiano Magro <cristiano.magro@vola.it>
Date: Fri, 27 Dec 2024 21:47:57 +0100
Subject: [PATCH] ciclo for per visualizzare i dati

---
 06 - introducing components/xno-cmp-intro-01-starting-setup/app.js |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/06 - introducing components/xno-cmp-intro-01-starting-setup/app.js b/06 - introducing components/xno-cmp-intro-01-starting-setup/app.js
index 286b369..d6bb4d2 100644
--- a/06 - introducing components/xno-cmp-intro-01-starting-setup/app.js
+++ b/06 - introducing components/xno-cmp-intro-01-starting-setup/app.js
@@ -1,10 +1,30 @@
 const app = Vue.createApp({
   data() {
-    return {};
+    return {
+      detailsAreVisible: false,
+      friends: [
+        {
+          id: "manuel",
+          name: "Manuel Lorenz",
+          phone: "01234 5678 991",
+          email: "manuel@localhost.com",
+        },
+        {
+          id: "julie",
+          name: "Julie Jones",
+          phone: "09876 543 221",
+          email: "julie@localhost.com",
+        },
+      ],
+    };
   },
   computed: {},
   watch: {},
-  methods: {},
+  methods: {
+    toggleDetails() {
+      this.detailsAreVisible = !this.detailsAreVisible;
+    },
+  },
 });
 
 app.mount("#app");

--
Gitblit v1.8.0