Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Vue 3 v-else Directive

Vue 3 v-else Directive

Vue3 Built-in Directives Vue 3 Built-in Directives


v-else The directive is used to represent the else block of v-if or v-else-if.


Basic Explanation

v-else The directive must immediately follow a v-if or v-else-if element, representing the content to render when none of the preceding conditions are met.


Basic Usage

Example


Vue3 Built-in Directives Vue 3 Built-in Directives