vue showing both v-if and v-else code example Example: vue if <h1 v-if="variable">Vue is awesome!</h1>