In Vue.js, conditional rendering is achieved by using a set of directives on elements in the template.
v-if
Element displays normally when condition is true. When the condition is false, only partial compilation occurs and the element isn't rendered into the DOM until the condition becomes true.
...