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;