Collection-repeat and ionicPopup


#1

Hello,

Collection-repeat doesn’t work with ionicPopover widget. Although I see only about 20 entries in DOM, but I get 1500 watchers / scopes. Looks like collection-repeat can’t get dimensions of popover. Here is how I try to use it:

<style>.popover { height:500px; }</style>
<ion-popover-view>
  ...
  <ion-content>
    <div class="list">
      <a class="item item_style"
           collection-repeat="record in lookupCache"
           collection-item-width="'100%'"
           collection-item-height="getItemHeight(record, $index)"
           style="width:100%">
             <h2>{{record.record_desc}}</h2>
      </a>
    </div>
  </ion-content>
  ...
</ion-popover-view>

Aliaks


#2

Care to throw this into a codepen and I can take a look at it?


#3

It took a while, but it has nothing to do with popover. Looks like you shouldn’t use “display: none” on collection-repeat container (use opacity: 0 instead). Here is codepen: http://codepen.io/alextrs/pen/Iuxht