Cristiano Magro
2024-12-27 30fe86ba1cbc023ae26429977a7e71304805fe86
template
2 files modified
15 ■■■■■ changed files
05 - behind the scenes/xno_behind-scenes-01-starting-setup/app.js 13 ●●●●● patch | view | raw | blame | history
05 - behind the scenes/xno_behind-scenes-01-starting-setup/index.html 2 ●●● patch | view | raw | blame | history
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");
app2.mount("#app2");
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>