From 7783284353229af089627814071f20707b06d045 Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Thu, 26 Dec 2024 15:29:25 +0100 Subject: [PATCH] recupero lezioni precedenti --- 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