Cristiano Magro
2024-12-26 8c672a568ad096f28d4c3a2ba95b01ecc30cc3ce
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);
    },
  },
});