Cristiano Magro
2024-12-26 948b23dac23898dfb4e340840d6f94458c5dd2ba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const app = Vue.createApp({
  data() {
    return { 
      goals: [],
      enteredGoal: '',
     };
 
  },
  methods: {
    addGoal() {
      this.goals.push(this.enteredGoal)
    },
    removeGoal(idx){
      this.goals.splice(idx,1);
    },
  },
});
 
app.mount("#user-goals");