Discussion
Discussion copied to clipboard
Instantiate a copy of a component directly in that component
Hey guys, Can we do this in Vue: in MenuItem.vue file, I write this:
...<MenuItem></MenuItem>...
It's a little bit difficult to explain :) . What I want to do is create MenuItem right directly in MenuItem.vue (sounds like recursion), I try but it doesn't work . Can anyone help me? Many Thanks!
https://vuejs.org/v2/guide/components.html#Recursive-Components