dashboard
repositories
filestore
activity
search
login
udemy
/
corso-vue
corso vuejs
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
add to list an item
Cristiano Magro
2024-12-26
f8f722e8a2b63220907736782e547c5a06d88988
[udemy/corso-vue.git]
/
03 - lists conditional
/
lists-cond-01-starting-setup
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const app = Vue.createApp({
data() {
return {
goals: [],
enteredGoal: '',
};
},
methods: {
addGoal() {
this.goals.push(this.enteredGoal)
},
},
});
app.mount("#user-goals");