Can some one tell me what im do wong Im try to use ternary operator in v-slot scope
Here is my code
<template :v-slot="category.children.length ? `activator` : `default`">
<v-list-item-avatar>
<v-img :src="`/uploads/image/category/` + category.image"></v-img>
</v-list-item-avatar>
<v-list-item-content>
<v-list-item-title v-text="category.name"></v-list-item-title>
</v-list-item-content>
</template>
If anyone knows a solution to this problem, I will be very grateful
v-slot="activator"andv-slot="default"work? you may need av-if="category.children"somewhere if the model is not predefined as an arrayproperty of undefinederror?