Get angular-slick-carousel running


#1

Hi community,

I have problems in using the angular-slick-carousel (https://github.com/devmark/angular-slick-carousel) in an angular-meteor project. I’d be glad if someone could help me get this running since slick is a really great carousel implementation.

I added it to my project by meteor npm i -S angular-slick-carousel.

In my app component I added slick by:

...
import 'angular-slick-carousel';

export default angular.module('myApp', [
    angularMeteor,
    ngMaterial,
    'slickCarousel'
]);

I tried a named import of the module but this did not work out. When I import it in the above way, I get no compilation errors any more.

When I now use the component in the documented way, it’s just not working. Slick does not generate any dom-nodes as usual.

<slick infinite="true" slides-to-show="2" slides-to-scroll="2">
  // my ng-repeat stuff
</slick>

Do I have to install slick manually as well? I didn’t think so, because the angular-slick-carousel seems to bring slick with it. Have you any suggestions how to get this running?

Thanks :slight_smile:,
Dave


#2

Hi Dave!

Did you ever have any luck with this? I know that you do need to load slick carousel separately from angular-slick-carousel, but I can’t figure out how to force it to load first. Anyway, if you figure this out, would you let me know? Thanks!

Ryan