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.
vuejs_course/2021-01-23 behind-scenes-01.../app.js

20 lines
425 B
JavaScript

const app = Vue.createApp({
data() {
return {
currentUserInput: "",
message: "Vue is great!",
};
},
methods: {
saveInput(event) {
this.currentUserInput = event.target.value;
},
setText() {
//this.message = this.currentUserInput;
this.message = this.$refs.userText.value;
},
},
});
app.mount("#app");