Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Vue.js Basics Sweeping Vues: Loops, Methods, Directives Sweeping Vues Quiz 1

what was wrong in my code?

new Vue({ el: '#app', data: { songs: ['Ventura Highway', 'Horse with No Name', 'Tinman'] } });

<div id="app"> <ul> <li v-show="data in vue">{{song}}</li> </ul> </div>

Stivan Radev
Stivan Radev
1,475 Points

You did not post your code. You have to copy and paste it here!

2 Answers

Steven Parker
Steven Parker
231,236 Points

The question itself contains some of the answers: "Fill in the blanks to display each song in the array of songs."

And since to code needs to be repeated for each array item, the first blank needs to indicate a loop ("v-for").

Your code should look like this
<li v-for="song in songs">{{song}}</li>