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 trialDaniel Benisti
Front End Web Development Techdegree Graduate 22,224 Pointswhat 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>
2 Answers
Steven Parker
231,275 PointsThe 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
").
connor aubel
716 PointsYour code should look like this
<li v-for="song in songs">{{song}}</li>
Stivan Radev
1,475 PointsStivan Radev
1,475 PointsYou did not post your code. You have to copy and paste it here!