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
Raw Normal View History

2021-01-22 20:50:15 +01:00
const app = Vue.createApp({
2021-01-23 09:53:15 +01:00
data() {
return {
currentUserInput: "",
message: "Vue is great!",
};
2021-01-22 20:50:15 +01:00
},
2021-01-23 09:53:15 +01:00
methods: {
saveInput(event) {
this.currentUserInput = event.target.value;
},
setText() {
//this.message = this.currentUserInput;
2021-01-23 09:54:37 +01:00
this.message = this.$refs.userText.value;
2021-01-23 09:53:15 +01:00
},
2021-01-22 20:50:15 +01:00
},
});
2021-01-23 09:53:15 +01:00
app.mount("#app");