Q:

Show text one time using ng-repeat with condition

I'd like to show element only one time within ng-repeat.
My code bellow doesn't work because "Event of today" is shown each time when an event is starting today...
My code :
  <div class="line" ng-repeat="event in events">
    <!-- h4 only once if condition is passed -->
    <h4 ng-if="event.start.getTime() === today.getTime()">Event of today</h4>
    <!-- h4 only once if condition is passed -->
    <h4 ng-if="event.start.getTime() === tomarrow.getTime()">Event of tomarrow</h4>
    <div class="event-body">
      <a href="/event/show/{{event.id}}" class="event-title"><h3>{{event.categoryName}} : {{event.title}}</h3></a>
    </div>
  </div>

A:

Just create a filtered version of the events array and display that. You can make a function that refilters it, and call that whenever there's a change that needs it to update (putting it in a $scope.$watch function seems the easiest way to do this). It seems low-tech, but it really gives you the most control over what you end up seeing.
Here is a very stripped-down Plunker of this, just showing some simple filtering: Example.

