Skip to content

Instantly share code, notes, and snippets.

Created July 20, 2017 05:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7fd1403c09a7041a30e052c4ede25095 to your computer and use it in GitHub Desktop.
Save anonymous/7fd1403c09a7041a30e052c4ede25095 to your computer and use it in GitHub Desktop.
computed: {
todos () {
return this.$store.state.todos
},
allChecked () {
return this.todos.every(todo => todo.done)
},
//todos filtrados
filteredTodos () {
return filters[this.visibility](this.todos)
},
remaining () {
return this.todos.filter(todo => !todo.done).length
}
},
filteredTodos () {
return filters[this.visibility](this.todos)
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment