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

ng-repeat error #11

Open
Olegarius opened this issue Mar 17, 2017 · 1 comment
Open

ng-repeat error #11

Olegarius opened this issue Mar 17, 2017 · 1 comment

Comments

@Olegarius
Copy link

Olegarius commented Mar 17, 2017

Hi guys.
I trying to use ui-swiper today. I have one big problem with using ng-repeat with object lists.
Steps to reproduce describes bellow:

  1. in js code write:
    $scope.menu = [ {'name':'1'}, {'name':'2'}, {'name':'3'}, {'name':'4'} ];
  2. in html template write the next:
      <swiper slides-per-view="2" centered-slides=true spaceBetween=0 loop=true>
        <slides>
              <slide ng-repeat="menuitem in menu">
                {{menuitem.name}}
              </slide>
        </slides>
      </swiper>

When I do that - the slider dragging is not moving to the next item.
Hovever, pagination buttons works fine.

I wondering that nobody seen this bug until this time.
Could You please fix this as soon as possible?

Thanks.

@muhammadsamir11
Copy link

add ng-if="menu" to swiper

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