From eb387dbd90a2a891ee5ee4458e32cccb460fd9b1 Mon Sep 17 00:00:00 2001
From: Cristiano Magro <cristiano.magro@vola.it>
Date: Mon, 06 Jan 2025 18:15:48 +0100
Subject: [PATCH] first components e props

---
 10 - course project/xno-prj-cmp-01-starting-setup/src/App.vue |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/10 - course project/xno-prj-cmp-01-starting-setup/src/App.vue b/10 - course project/xno-prj-cmp-01-starting-setup/src/App.vue
new file mode 100644
index 0000000..36206d2
--- /dev/null
+++ b/10 - course project/xno-prj-cmp-01-starting-setup/src/App.vue
@@ -0,0 +1,39 @@
+<template>
+    <ul>
+        <learning-resource v-for="res in storedResouces" 
+        :key="res.id"
+        :title="res.title" 
+        :description="res.description"
+        :link="res.link"
+        >
+        </learning-resource>
+    </ul>
+</template>
+
+<script>
+import LearningResource from './components/learning-resource/LearningResource.vue';
+
+export default {
+    components:{
+        LearningResource: LearningResource,
+    },
+    data(){
+        return {
+            storedResouces: [
+                {
+                    id:'official-guide',
+                    title: 'Official Guide',
+                    description: 'The official Vue.js documentation',
+                    link: 'https://vuejs.org'
+                },
+                {
+                    id:'google',
+                    title: 'Google',
+                    description: 'Learn to google...',
+                    link: 'https://google.com'
+                },
+            ]
+        }
+    }
+}
+</script>
\ No newline at end of file

--
Gitblit v1.8.0