Learn in this tutorial, how to use slots in Vue JS. With slots, you get the feature, that you can inject template code from a parent component into a child component.
Components are for creating re-usable pieces that you can dump in,
in different places to re-render the same kind of code in your application. But there is a problem you can have if there are different use-cases for a Component. Slots in Vue JS are a great feature and can help you.
ā Subscribe : https://www.youtube.com/channel/UCVI6tv5boZ62bSsd8k9eM7Q
#vue #vuejs