Collection repeat with (key, value)


#1

I got events from my server as JSON. I want to show the events with divided by date. Works fine with ng-repeat but not with collection-repeat (cause cr only uses arrays). Is there another solution to this problem?

<div ng-repeat="(key,value) in events | groupBy: 'date'" class="eventContainer">
        <ion-item class="item item-divider">
          {{key}}
        </ion-item>

        <a class="item item-thumbnail-left" ng-href="#/app/events/{{event.id}}/{{event.title}}" ng-repeat="event in value">
          <div class="flyerImage" style="background: url(http://www.party-news.de/party/images/termine/flyer/{{event.flyerurl}}) center no-repeat"></div>
          <h2>{{event.title}}</h2>
          <p>{{event.description}}<br><span class="small-text">{{event.time}}</span></p>
        </a>

      </div>