check if an array is empty vuejs 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>