This repository has been archived on 2021-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
|
const app = Vue.createApp({
|
|
data() {
|
|
return {
|
|
currentUserInput: '',
|
|
message: 'Vue is great!',
|
|
};
|
|
},
|
|
methods: {
|
|
saveInput(event) {
|
|
this.currentUserInput = event.target.value;
|
|
},
|
|
setText() {
|
|
this.message = this.currentUserInput;
|
|
},
|
|
},
|
|
});
|
|
|
|
app.mount('#app');
|