Discussion icon indicating copy to clipboard operation
Discussion copied to clipboard

Instantiate a copy of a component directly in that component

Open maitrungduc1410 opened this issue 8 years ago • 1 comments

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!

maitrungduc1410 avatar Aug 30 '17 09:08 maitrungduc1410

https://vuejs.org/v2/guide/components.html#Recursive-Components

vrajau avatar Nov 28 '17 17:11 vrajau