0👍
v-show
toggles display:none
whereas v-if
removes the element from the DOM.
when you do run the following bit of code
let input = this.$refs['email'].$children[0];
$refs
would be unable to find the email element on the DOM if you were using v-if
.
Source:stackexchange.com