Controller '$ionicScroll', required by directive 'collectionRepeat', can't be found!


#1

Hello people,

The "$ionicScroll controller can’t be found by the collectionRepeat directive, i checked the source code and found them both in Ionic.bundle.js. But I keep getting this error when I want to use the collection-repeat directive,

this is the part of the code where i’m using it,

  <div ng-show="selection == 'list'" class="top" >
    <a collection-repeat="marker in map.markers"
    collection-item-width="'100%'"
    collection-item-height="getItemHeight(marker, $index)"
    ng-style="{height: getItemHeight(item, $index)}">
      <h3 style="text-wrap:normal">{{marker.title}}</h3> 
    </a>
  </div>

can someone help me out?


#2

Hmm, couldn’t get this error using this codepen

Can you put together a demo for this?


#3

Made a pen, hope you can help me out can’t figure out what’s different


#4

It’s because on your ion-content, you have scroll=“false”. Remove that and you’ll be fine