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

---
 02 - basic/basics-03-events-starting-code/app.js |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/02 - basic/basics-03-events-starting-code/app.js b/02 - basic/basics-03-events-starting-code/app.js
index dc6d298..3ebded4 100644
--- a/02 - basic/basics-03-events-starting-code/app.js
+++ b/02 - basic/basics-03-events-starting-code/app.js
@@ -1,13 +1,20 @@
 const app = Vue.createApp({
   data() {
     return {
-      counter: 0,
-      name,
+      counter: 10,
+      name: '',
+      confirmedName: '',
     };
   },
   methods: {
+    confirmInput(){
+      this.confirmedName = this.name;
+    },
+    submitForm(event){
+      alert("Subit form");
+    },
     setName(event){
-        this.name = event.target.value;
+      this.name= event.target.value ;
     },
     add(num) {
       this.counter = this.counter + num;

--
Gitblit v1.8.0