Closed mariogmz closed 5 years ago
This issue is solved for me by including jQuery before Angular
@monove can you please elaborate on how you achieved that? Code examples?
<script src="../bower_components/jquery/jquery.js"></script>
<script src="../bower_components/angular/angular.js"></script>
<script src="../bower_components/slick-carousel/slick/slick.js"></script>
<script src="../bower_components/angular-slick-carousel/dist/angular-slick.min.js"></script>
@monove I see, I ended up doing the same, I would liked to have slick included the common js way.
I am loading like that and still get the error
<script src="/Scripts/jquery-2.2.4.js"></script>
<script src="/javascripts/bootstrap.js"></script>
<script src="/Scripts/angular.js"></script>
<script src="/Scripts/slick.js"></script>
<script src="/Scripts/angular-slick.js"></script>
Really impressed...
<script src="/Scripts/slick.js"></script>
<script src="/Scripts/angular.js"></script>
is correct
Hello, I'm trying to include this amazing carousel into my angular application, I'm using common JS along with browserify to make this happen.
I'm getting
TypeError: slickness.slick is not a function
error on my application, I'm using gulp with browserify to include my dependencies usingnpm
so I'm not really sure how to make this work, I knowjquery
must be included beforeslick
and then, after those twoangular-slick-carousel
should be included, but I'm using common js modules for everything.This is a slice of my code:
app.js (application entry point)
app/core/index.js
app/blocks/index.js