Cristiano Magro
2024-12-26 44695d9b6c871bad2366e3fde89969c862341296
commit | author | age
44695d 1 const app = Vue.createApp({
CM 2   data() {
3     return { 
4       enteredGoalValue: '',
5       goals: []
6      };
7   },
8   methods: {
9     addGoal() {
10       this.goals.push(this.enteredGoalValue);
11     },
12     removeGoal(idx) {
13       this.goals.splice(idx, 1);
14     }
15   }
16 });
17
18 app.mount('#user-goals');