I am new to flickity and I want to group cells and display dots at the same time. But on my project they seems to be mutually exclusive, I can either group cells or display dots, even if from this codepen, they do work well together.
What am I doing wrong?
Here is my code
mypage:
this html is part of the template in my angularjs custom directive:
app.directive('productSlider', function ($rootScope, $compile, $timeout, $sce, $location, $window) {
return {
restrict: 'E',
template: '<section id="products" >' +
'<div class="prodotti-int gallery js-flickity" id="productSlider" data-flickity=\'{ "groupCells": 4 }\' >' +
... +
here is my jquery inside the link method of my directive:
$('#productSlider.gallery').flickity({
// options
cellAlign: 'center',
freeScroll: true,
wrapAround: false,
contain: true,
autoPlay: 0,
prevNextButtons: false,
pageDots: false
});
In this case, the cell are grouped properly but I dont see the dots. In order to see the dots, I need to remove the groupCells property.
What am I doing wrong?
Note: this code works inside the same page.
Thanks