Answer the question
In order to leave comments, you need to log in
Why doesn't recursion work?
I have 2 components.
In one of them, I want to call recursion in a loop to output a tree.
Recursion component:
<template>
<div>
<ul v-for="(asset, k) in sub" :key="k" class="q-my-none">
<li class="q-px-md row justify-between items-center">
<div class="cursor-pointer">
{{ asset["name"] }}
</div>
<q-btn
push
color="white"
text-color="primary"
round
icon="expand_more"
flat
class="q-my-xs no-shadow"
/>
<recourse v-if="asset.sub && asset.sub.length" :sub="asset.sub"></recourse>
</li>
</ul>
</div>
</template>
<script>
import Recourse from "./Recourse";
export default {
props: ['sub'],
components:{
Recourse
}
};
</script>
Unknown custom element: <recourse>
as if the component is not registered. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question