/ slots

scoped slots example with vue 2.1

scoped slots example with vue 2.1

scoped slots example with vue 2.1

In this demo we're using the new scoped slots in Vue 2.1 to create a sortable grid component.

Scoped slots allow you to pass component data into the slot template, so that the parent component can render the slot template with data from the child component.

codepen

See the Pen Vue 2.1 scoped slots example by Joseph Silber (@JosephSilber) on CodePen.