Tryed this sample from the README:
app.config(['slickCarouselConfig', function (slickCarouselConfig) {
slickCarouselConfig.dots = true;
slickCarouselConfig.autoplay = false;
}])
This is not working because in lib's source code, in initOptions function, angular.extend is not used correctly.
QUICK FIX: switch places of first and second arguments.
This way, the default values of config parameters will be loaded, then values from slickCarouselConfig and finally the settings object (if any) passed to slick directive
Tryed this sample from the README:
app.config(['slickCarouselConfig', function (slickCarouselConfig) {slickCarouselConfig.dots = true;slickCarouselConfig.autoplay = false;}])This is not working because in lib's source code, in
initOptionsfunction,angular.extendis not used correctly.QUICK FIX: switch places of first and second arguments.
This way, the default values of config parameters will be loaded, then values from
slickCarouselConfigand finally thesettingsobject (if any) passed to slick directive