commit | author | age | ||
5978c3 | 1 | const app = Vue.createApp({ |
CM | 2 | data() { |
3 | return { | |
4 | currentUserInput: '', | |
5 | message: 'Vue is great!', | |
6 | }; | |
7 | }, | |
8 | methods: { | |
9 | saveInput(event) { | |
10 | this.currentUserInput = event.target.value; | |
11 | }, | |
12 | setText() { | |
13 | this.message = this.currentUserInput; | |
14 | }, | |
15 | }, | |
16 | }); | |
17 | ||
18 | app.mount('#app'); |