I am new to flickity and I want to group cells and display dots at the same time. But in my project, they seem to be mutually exclusive, I can either group cells or display points, even if from this codepen they work well together.
What am I doing wrong?
Here is my code
MyPage:
this html is part of the template in my angularjs user 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({
cellAlign: 'center',
freeScroll: true,
wrapAround: false,
contain: true,
autoPlay: 0,
prevNextButtons: false,
pageDots: false
});
In this case, the cell is grouped correctly, but I do not see the point. To see the points, I need to remove the groupCells property.
What am I doing wrong?
Note: this code works on one page.
thank