Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: How can I run slider in vue component?

Trending News:

My view like this :


@foreach($leagues as $league)



@endforeach
...


My top league Component vue like this :





When loaded the first time, there are 5 items of data displayed in the form of sliders. I tried putting this Code : $('.slick').slick({slidesToShow: 3, infinite: false}); in created, but there was an error

If the code executed, there exist error like this :

[Vue warn]: Error in Created hook: "TypeError: $(...).slick is not a function"

How can I solve it?



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: How can I run slider in vue component?

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×