From f31b9ed504b53b81d9e61a1326ddc64bce6cb6d6 Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Sat, 28 Dec 2024 02:25:51 +0100 Subject: [PATCH] recupero il codice della precedente lezione e lo spezzo in componenti --- 07 - development setup/vue-cli-01-a-new-vue-project/src/main.js | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/07 - development setup/vue-cli-01-a-new-vue-project/src/main.js b/07 - development setup/vue-cli-01-a-new-vue-project/src/main.js index 69680af..ac37128 100644 --- a/07 - development setup/vue-cli-01-a-new-vue-project/src/main.js +++ b/07 - development setup/vue-cli-01-a-new-vue-project/src/main.js @@ -1,3 +1,10 @@ -import { createApp } from 'vue'; +import { createApp } from "vue"; -createApp({}).mount(''); +import App from "./App.vue"; +import FriendContact from "./components/FriendContact.vue"; + +const app = createApp(App); + +app.component("friend-contact", FriendContact); + +app.mount("#app"); -- Gitblit v1.8.0