Skip to content

Commit

Permalink
set enteredValue to an empty string to reset the value
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiane-abou-abderrahim committed Nov 7, 2023
1 parent 6cd8f59 commit 1fc9eef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Vue.createApp({
methods: {
addGoal() {
this.goals.push(this.enteredValue);
this.enteredValue = '';
}
}
}).mount('#app');
Expand Down

0 comments on commit 1fc9eef

Please sign in to comment.