[Vuejs]-Recursive component using Vue class-style components

-1👍

there is no need to:

components:{TreeNode}

just remove it and everything will work!

0👍

That’s a recursive component:
https://v2.vuejs.org/v2/guide/components-edge-cases.html#Recursive-Components

@Component({
    name: "TreeNode",
})
...

Source: https://stackoverflow.com/a/62794715

👤Aidin

Leave a comment