Paulund is full of premium tutorials and support to help with your development
Sign up to get full access to all tutorials.
VueJS Slots is a way of injecting content into your rendered Vue components. This allows the component to become more flexible and reusable. In this tutorial, we're going to investigate how Vue slots can be used and explain a real world example of when you could use slots. There are a few ways of injecting data into your VueJS child components you can use props which are attribute based so you would normal do this with data living in a JSON object. But this doesn't really work very well when you don't have data but want to . . .