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
Hello! Someone knows how to use swiperEvents like 'slideChange' using ui-swiper without edit 'node-packages' files?
Default:
var mySwiper = new Swiper('.swiper-container', { // ... }; mySwiper.on('slideChange', function () { console.log('slide changed'); });
Thanks!
The text was updated successfully, but these errors were encountered:
I use it like this to toggle content on based on slide index, maybe it will help
html
<swiper on-slide-change-start="yourScope"> ... </swiper> ... <div ng-show="your2ndScope === 0"> ... </div> <div ng-show="your2ndScope === 1"> ... </div>
controller
$scope.yourScope = function (swiper) { $scope.your2ndScope = swiper.activeIndex; console.log(swiper.activeIndex); };
Sorry, something went wrong.
What if you want to access scope variables in a controller?
No branches or pull requests
Hello!
Someone knows how to use swiperEvents like 'slideChange' using ui-swiper without edit 'node-packages' files?
Default:
Thanks!
The text was updated successfully, but these errors were encountered: