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 trialDwayne Munro
Front End Web Development Techdegree Student 13,108 PointsIn the blanks below, use a Vue directive to show or hide the span element based on the value of catOfTheWeek.
How would I solve this code for Vue.js
1 Answer
Balazs Peak
46,160 PointsIn order to hide or reveal the element based on Vue properties, you have to assign the variable name to the v-show attribute. Something like this:
<div v-show="catOfTheWeek">Some text</div>