Skip to content
Advertisement

v-slot is always undefined in VueJS

Here is the problem. Root view:

JavaScript

Grid component (container):

JavaScript

And finally grid item component:

JavaScript

I’m getting the error: GridItem.vue Uncaught (in promise) TypeError: Cannot read property ‘testData’ of undefined. I’m cracked my head trying to understand what’s going wrong. Need help, thanks for your time.

Advertisement

Answer

Get your slot props in Home component:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement