Skip to content
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

Use initialSlide: $scope.initialSlide #42

Open
taylormaster opened this issue Jun 2, 2016 · 1 comment
Open

Use initialSlide: $scope.initialSlide #42

taylormaster opened this issue Jun 2, 2016 · 1 comment

Comments

@taylormaster
Copy link

Hi!
Clear all attribute. I do not change from controller the initialSlide value. Always jump it to the first slide.

<ks-swiper-container on-ready="onReadySwiper(swiper)">
      <ks-swiper-slide class="swiper-slide" ng-repeat="todo in todos track by $index">
        <div class="imgclass-container">
          <img class="imgclass" ng-src="{{todo.pix_url}}">
        </div>
      </ks-swiper-slide>            
    </ks-swiper-container>

and controller:

**$scope.n = 3;** 
var params = {
    slidesPerView: $scope.slidesPerView || 1,
    slidesPerColumn: $scope.slidesPerColumn || 1,
    spaceBetween: $scope.spaceBetween || 0,
    direction: $scope.direction || 'horizontal',
    loop: $scope.loop || false,
    **initialSlide: $scope.n || 0,**
    showNavButtons: true
};

or how to?

@brh55
Copy link
Contributor

brh55 commented Aug 18, 2016

Have you solve this issue? @taylormaster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants