Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Vue.js Basics!
You have completed Vue.js Basics!
Preview
In this video we'll explore the differences between v-show and v-if.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
in those instances their
bylines are blank.
0:00
That's not what we want.
0:03
We could definitely use v-show to solve
this problem, and that would work fine,
0:05
but there's another way
that I'd like to show you.
0:09
We can also use a directive called v-if.
0:12
This is another way of saying,
if media.contributor exists,
0:22
render this paragraph,
and if it doesn't, don't.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up