Created
July 20, 2017 05:13
-
-
Save anonymous/7fd1403c09a7041a30e052c4ede25095 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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