title: Angular list with ng-repeat with date as divider
body: <p>I've got a JSON object with different events that looks like this:</p>
  
  <pre><code>{
     "error":false,
     "events":[
        {
           "id":1,
           "title":"First entry",
           "date":"2014-11-04"
        },
        {
           "id":2,
           "title":"Second entry",
           "date":"2014-11-04"
        },
        {
           "id":3,
           "title":"Third entry",
           "date":"2014-11-05"
        },
        {
           "id":4,
           "title":"Fourth entry",
           "date":"2014-11-06"
        },
        {
           "id":5,
           "title":"Fifth entry",
           "date":"2014-11-06"
        }
     ]
  }
  </code></pre>
  
  <p>This object is stored in $scope.events in my controller.</p>
  
  <p>Now I'm looping this array to build the list of events:</p>
  
  <pre><code>&lt;ion-list&gt;
  &lt;div class="item item-divider"&gt;
    {{event.date}}
  &lt;/div&gt;  
    &lt;a class="item item-thumbnail-left" href="#/app/event/{{event.id}}" ng-repeat="event in events"&gt;
    &lt;img src="media/thumbnails/{{event.id}}.jpg"&gt;
    &lt;h1&gt;{{event.title}}&lt;/h1&gt;
    &lt;/a&gt;
  &lt;/ion-list&gt;
  </code></pre>
  
  <p>My goal is to display {{event.date}} as a list divider just once for every day. So in this examle it shoudl look like this:</p>
  
  <p>2014-11-04 (divider)</p>
  
  <ul>
  <li><p>First entry</p></li>
  <li><p>Second entry</p></li>
  </ul>
  
  <p>2014-11-05 (divider)</p>
  
  <ul>
  <li>Third entry</li>
  </ul>
  
  <p>2014-11-06 (divider)</p>
  
  <ul>
  <li><p>Fourth entry</p></li>
  <li><p>Fifth entry</p></li>
  </ul>
  
  <p>I'm relly new to ionic &amp; angular and I have no idea how to achieve this. May with some custom filter?</p>
  
  <p>All in all I'm looking for something similar to <a href="https://stackoverflow.com/questions/20850336/angular-getting-list-with-ng-repeat-with-dividers-separators">Angular: Getting list with ng-repeat with dividers / separators</a> but with the date as separator instead of initial letter.</p>
  
  <p>Some ideas?</p>
  
  <p>Any help/tip is really appreciated!</p>