v-else-if
directives JS-0631v-else-if
is not valid when:
v-if
/v-else-if
directives.v-if
/v-else
directives.<!-- no argument -->
<div v-if="condition_one"></div>
<div v-else-if:aaa="condition_two"></div>
<!-- no modifier -->
<div v-if="condition_one"></div>
<div v-else-if.bbb="condition_two"/>
<!-- must have Attribute Value -->
<div v-if="condition_one"></div>
<div v-else-if></div>
<!-- No previous element with v-if or v-else-if -->
<div v-else-if="condition_two"></div>
<!-- 'v-else-if' and 'v-if' directives can't exist on the same element -->
<div v-if="condition_one" v-else-if="bar"></div>
<!-- require no argument -->
<div v-if="condition_one"></div>
<div v-else-if="condition_two"></div>
<!-- require no modifier -->
<div v-if="condition_one"></div>
<div v-else-if="condition_two"/>
<!-- Add attribute as "condition_two" -->
<div v-if="condition_one"></div>
<div v-else-if="condition_two"></div>
<!-- Add previous element with v-if or v-else-if -->
<div v-if="condition_one"/>
<div v-else-if="condition_two"></div>
<!-- 'v-else-if' and 'v-if' directives can't exist on the same element -->
<div v-if="condition_one"</div>
<div v-else-if="condition_two"/>