1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| const app = Vue.createApp({
| data() {
| return {
| messaggio: "Hi Alert!",
| kdInput: "",
| keInput: "",
| };
| },
| methods: {
| myAlert() {
| alert(this.messaggio);
| },
| myKeydown(event){
| this.kdInput = event.target.value;
| },
| myKeyEnter(event){
| this.keInput = event.target.value;
| }
| },
| });
|
| app.mount("#assignment");
|
|