Adding items Dynamically to the variable-width carousel not working
I've been trying to add elements to the carousel dynamically and once the items are added the carousel isn't functioning
ul.clearfix(slick settings="slickConfig") li.vid-clipbrd-inner-date-list(ng-repeat ='ClipboardItem in clipboardataSorted' ')
Have you tried adding ng-if="clipboardataSorted.length" (or whatever) so that the slider is initialised only when you have the data to load in? Seems like the dynamic slides would only work when they can calculate the actual dimensions needed on init.
I am having the same issue. I tried the tactic from the docs of adding ng-if to the
You need to allow the boolean set to false to be digested. The example given is not quite accurate. Try something more like this:
$scope.number = [{label: 1}, {label: 2}, {label: 3}, {label: 4}, {label: 5}, {label: 6}, {label: 7}, {label: 8}];
$scope.numberLoaded = true;
$scope.numberUpdate = function(){
$scope.numberLoaded = false; // disable slick
//number update
$timeout(function() {
$scope.numberLoaded = true; // enable slick
});
};