-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
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
AutoPlay dosen't work? #53
Comments
The issue maybe with ng-repeat/dynamically loading images. Does autoplay continue to work when you resize the browser after you finish loading images? |
It can work when I add $timeout in the code
Get Outlook for iOS<https://aka.ms/o0ukef>
On Thu, Nov 17, 2016 at 2:15 AM +0800, "Brandon Him" <[email protected]<mailto:[email protected]>> wrote:
The issue maybe with ng-repeat/dynamically loading images. Does autoplay continue to work when you resize the browser after you finish loading images?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#53 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AP5UrFThk1k8kQ39tKSgEM-yhG_osSQkks5q-0gbgaJpZM4KVrPd>.
|
add ng-if, My code follow: |
For anyone still struggling with this issue please notice that currently Swiper itself expects an object (w/ And angular-swiper does a type checking to make sure the param is a number. if (!angular.isUndefined($scope.autoplay) && typeof $scope.autoplay === 'number') {
params = angular.extend({}, params, {
autoplay: $scope.autoplay
});
} So it's impossible to get the |
I used angular-swiper in my project, but AutoPlay dosen't work. My code follow:
Please suggest me how i can make it work, thanks!
<ks-swiper-container slides-per-view="1" slides-per-column="1" space-between="0" pagination-is-active="true" pagination-clickable="true" show-nav-buttons="false" loop="true" autoplay="2000" initial-slide="0" direction="horizontal"> <ks-swiper-slide class="swiper-slide" ng-repeat="list in listBean"> <a ng-href="{{list.companyURL}}"> <img ng-src="/{{list.companyImg}}" alt="{{list.companyName}}" class="img-responsive"> </a> </ks-swiper-slide> </ks-swiper-container>
The text was updated successfully, but these errors were encountered: