You often need to hide elements based on various conditions of your data. This lesson walks you through hiding the comments when no comments are available.
It's needed to wrap the elements in a template to add the v-if?. can't it be directly in the element?
As there is only one element, v-if
can be added on it. Template element used to apply condition on group of elements.