From 8c672a568ad096f28d4c3a2ba95b01ecc30cc3ce Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Thu, 26 Dec 2024 23:51:23 +0100 Subject: [PATCH] draw bar healt after attack --- 03 - lists conditional/lists-cond-04-diving-deeper-into-v-for/app.js | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/03 - lists conditional/lists-cond-04-diving-deeper-into-v-for/app.js b/03 - lists conditional/lists-cond-04-diving-deeper-into-v-for/app.js new file mode 100644 index 0000000..961c6ab --- /dev/null +++ b/03 - lists conditional/lists-cond-04-diving-deeper-into-v-for/app.js @@ -0,0 +1,15 @@ +const app = Vue.createApp({ + data() { + return { + enteredGoalValue: '', + goals: [] + }; + }, + methods: { + addGoal() { + this.goals.push(this.enteredGoalValue); + } + } +}); + +app.mount('#user-goals'); \ No newline at end of file -- Gitblit v1.8.0