Ionic ng-repeat problem with vertical scroll

Asked

Viewed 147 times

3

I’m making a list of cards with ng-repeat on Ionic, the problem is that it clicks the scroll vertical after a certain point (hangs as if there is no more content). This only happens on Android, Browser no.

Codepen: http://codepen.io/scofield25/pen/NxjmYP/

 <div class="row" ng-repeat="movie in movies" ng-if="$index % 2 === 0">
      <div class="col col-50" ng-if="$index < movies.length">
        <div class="list card" width="100%">
          <div class="item item-image">
            <img class="movie-img" src="http://og.infg.com.br/in/12760791-e87-726/FT1500A/550/cristo-redentor.jpg">
          </div>
          <a class="item" href="#">
            <strong>{{movies[$index].name}}</strong>
            <p class="movie-type">
              {{movies[$index].type}}
            </p>
          </a>
        </div>
      </div>
      <div class="col col-50" ng-if="$index + 1 < movies.length">
        <div class="list card" width="100%">
          <div class="item item-image">
            <img class="movie-img" src="http://og.infg.com.br/in/12760791-e87-726/FT1500A/550/cristo-redentor.jpg">
          </div>
          <a class="item">
            <strong>{{movies[$index+ 1].name}}</strong>
            <p class="movie-type">
              {{movies[$index+ 1].type}}
            </p>
          </a>
        </div>
      </div>
    </div>

Thank you in advance!

  • Add the code directly to the question.

  • Ready, code added.

  • In the Codepen example there was no error. But try using collection-repeat instead of ng-repeat.

  • Probably the version you are testing Android must be less than 4.4 right? If you are trying to test in a larger version and see if it resolves. I still haven’t found a solution for this(I have the same problem), so requirement of my app is 4.4 >

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.