We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to set a custom renderBullet function:
<section id="main-swipe" class="swipe" ng-controller="SwipeController"> <swiper pagination-type="bullets" pagination-bullet-render="renderBullet"> ... </swiper> </section>
module.controller("SwipeController", function($scope) { $scope.renderBullet = function (index, className) { return '<span class="' + className + '">' + (index + 1) + '</span>'; }; });
But I got:
TypeError: x.params.paginationBulletRender is not a function at i.x.updatePagination (angular-ui-swiper.min.js:1)
The text was updated successfully, but these errors were encountered:
Actually I realized that I should use double braces as in:
<section id="main-swipe" class="swipe" ng-controller="SwipeController"> <swiper pagination-type="bullets" pagination-bullet-render="{{renderBullet}}"> ... </swiper> </section>
but still the value got in ui-swiper is a string and I get the same error. I'm pulling a request to change the code. Please evaluate the change.
Sorry, something went wrong.
No branches or pull requests
I'm trying to set a custom renderBullet function:
But I got:
The text was updated successfully, but these errors were encountered: