From 30fe86ba1cbc023ae26429977a7e71304805fe86 Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Fri, 27 Dec 2024 08:59:22 +0100 Subject: [PATCH] template --- 05 - behind the scenes/xno_behind-scenes-01-starting-setup/app.js | 13 ++++++++----- 05 - behind the scenes/xno_behind-scenes-01-starting-setup/index.html | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/05 - behind the scenes/xno_behind-scenes-01-starting-setup/app.js b/05 - behind the scenes/xno_behind-scenes-01-starting-setup/app.js index 89bb668..a4b815b 100644 --- a/05 - behind the scenes/xno_behind-scenes-01-starting-setup/app.js +++ b/05 - behind the scenes/xno_behind-scenes-01-starting-setup/app.js @@ -1,8 +1,8 @@ const app = Vue.createApp({ data() { return { - currentUserInput: '', - message: 'Vue is great!', + currentUserInput: "", + message: "Vue is great!", }; }, methods: { @@ -15,17 +15,20 @@ }, }); -app.mount('#app'); +app.mount("#app"); const app2 = Vue.createApp({ data() { return { - favoriteMeal:'pizza', + favoriteMeal: "pizza!!", }; }, computed: {}, watch: {}, methods: {}, + template: ` + <p>{{ favoriteMeal }}</p> + `, }); -app2.mount("#app2"); \ No newline at end of file +app2.mount("#app2"); diff --git a/05 - behind the scenes/xno_behind-scenes-01-starting-setup/index.html b/05 - behind the scenes/xno_behind-scenes-01-starting-setup/index.html index 2f0aadc..8458684 100644 --- a/05 - behind the scenes/xno_behind-scenes-01-starting-setup/index.html +++ b/05 - behind the scenes/xno_behind-scenes-01-starting-setup/index.html @@ -23,7 +23,7 @@ <p>{{ message }}</p> </section> <section id="app2"> - <p>{{ favoriteMeal }}</p> + </section> </body> </html> -- Gitblit v1.8.0