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 | } | |
13 | }); | |
14 | ||
15 | app.mount('#user-goals'); |