Vue-Pass DOM elements to child component with SLOTS

In Vue.js SLOTS can be used to pass DOM elements to child components. This is very easy concept to understand with following example. In your child component template you have to use

where your parent component can inject the DOM elements