19 lines
349 B
JavaScript
19 lines
349 B
JavaScript
const app = Vue.createApp({
|
|
data() {
|
|
return {
|
|
goals: [],
|
|
enteredGoalValue: "",
|
|
};
|
|
},
|
|
methods: {
|
|
addGoal() {
|
|
this.goals.push(this.enteredGoalValue);
|
|
},
|
|
removeGoal(index) {
|
|
this.goals.splice(index, 1);
|
|
},
|
|
},
|
|
});
|
|
|
|
app.mount("#user-goals");
|