03 - lists conditional/lists-cond-01-starting-setup/app.js
@@ -1,11 +1,18 @@ const app = Vue.createApp({ data() { return { goals: [] }; return { goals: [], enteredGoal: '', }; }, methods: { addGoal() { this.goals.push(this.enteredGoal) }, removeGoal(idx){ this.goals.splice(idx,1); }, }, });