From 54574e680e5cbaca947800590d8dac238bd559c2 Mon Sep 17 00:00:00 2001
From: Cristiano Magro <cristiano.magro@vola.it>
Date: Mon, 30 Dec 2024 21:46:59 +0100
Subject: [PATCH] alternativa ai components globals

---
 09 - deeper into components/cmp-adv-01-starting-setup/src/main.js |    7 +------
 09 - deeper into components/cmp-adv-01-starting-setup/src/App.vue |   11 +++++++++++
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/09 - deeper into components/cmp-adv-01-starting-setup/src/App.vue b/09 - deeper into components/cmp-adv-01-starting-setup/src/App.vue
index 62895b8..a411817 100644
--- a/09 - deeper into components/cmp-adv-01-starting-setup/src/App.vue
+++ b/09 - deeper into components/cmp-adv-01-starting-setup/src/App.vue
@@ -11,7 +11,18 @@
 </template>
 
 <script>
+import TheHeader from './components/TheHeader.vue';
+import BadgeList from './components/BadgeList.vue';
+import UserInfo from './components/UserInfo.vue';
+
 export default {
+  components: {
+    // 'the-header': TheHeader,
+    // TheHeader: TheHeader,
+    TheHeader,
+    BadgeList,
+    UserInfo
+  },
   data() {
     return {
       activeUser: {
diff --git a/09 - deeper into components/cmp-adv-01-starting-setup/src/main.js b/09 - deeper into components/cmp-adv-01-starting-setup/src/main.js
index 63c7e85..fd9f70c 100644
--- a/09 - deeper into components/cmp-adv-01-starting-setup/src/main.js
+++ b/09 - deeper into components/cmp-adv-01-starting-setup/src/main.js
@@ -1,16 +1,11 @@
 import { createApp } from 'vue';
 
 import App from './App.vue';
-import TheHeader from './components/TheHeader.vue';
 import BaseBadge from './components/BaseBadge.vue';
-import BadgeList from './components/BadgeList.vue';
-import UserInfo from './components/UserInfo.vue';
+
 
 const app = createApp(App);
 
-app.component('the-header', TheHeader);
 app.component('base-badge', BaseBadge);
-app.component('badge-list', BadgeList);
-app.component('user-info', UserInfo);
 
 app.mount('#app');

--
Gitblit v1.8.0