use if to check if array is empty in Vue code example
Example: vue check if list is empty
<template v-if="!nodes || !nodes.length>
Nothing To Show
</template>
<template v-else v-for="node in nodes">
{{ node }}
</template>
<template v-if="!nodes || !nodes.length>
Nothing To Show
</template>
<template v-else v-for="node in nodes">
{{ node }}
</template>