DEV Community

Discussion on: Build a Todo List App with VueJS

Collapse
 
ksalvione profile image
Kristel Salvione • Edited

Hello! Thanks for this tutorial.
Under the step "display our to do list" you say to add this line:
li class="list-item" v-for="item in reversedItems"

I notice after adding that line, Chrome devtools is saying that reversedItem is undefined, which it is. Is that definition something you had meant to include earlier in the tutorial? That error seems to be the reason my list in not displaying. I noticed in the Github you linked, reversedItems might be defined around line 55, is this correct? If so, could you expand on what that code is doing? Thanks!

Collapse
 
acao profile image
Rikki Schulte

Good question, I was wondering this myself, it appears in the repo but not in the article, just a computed() property

github.com/jarodpeachey/vue-todo-l...