[Recursive Components] How to refer to itself from the script tag part? #10025
-
As stated in the docs:
But how to refer to itself from the script tag part of the SFC? I would like to do it because I'm using a dynamic component, For now I'm doing something like this:
Setting |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Maybe try importing the component into itself? // Inside FooBar.vue
import FooBar from './FooBar.vue' |
Beta Was this translation helpful? Give feedback.
Maybe try importing the component into itself?
SFC Playground