Skip to content

Glossary: Vue.js

v-if

Also written: v-else-if, v-else

A directive that renders an element only when its expression is true. `v-else-if` and `v-else` must follow it directly.

Where the book teaches it

Related terms

v-showDirective