[Vuejs]-Vuejs how to use Vue-slick in childs component?

1👍

You can register it as a global component.

app.js

Vue.component('vue-slick',require('vue-slick').default);

Then use it anywhere inside your root element, within a component or directly in a blade template.

SomeComponent.Vue

<vue-slick :options='options'></vue-slick>

some.blade.php

<vue-slick :options='@json($options)'></vue-slick>

Leave a comment