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

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?

Hmm, couldn’t get this error using this codepen

Can you put together a demo for this?

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

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