As I work on constructing a timeline, I am looking to reverse every other index within the ng-repeat. Utilizing ng-repeat-start and ng-repeat-end on separate divs seems to only result in repeating the same array twice.
<ul class="timeline">
<li ng-repeat-start="t in vm.patientTimeLine">
<div class="timeline-badge" style="background-color:#f9f9f9!important;"><i class="fa fa-phone hg-blue" aria-hidden="true"></i></div>
<div class="card-block">
<h4 class="card-title"> {{t.FirstName}}'s reply was: <b ng-if="t.ReplyMessage !== null" class="stop">{{t.ReplyMessage}}</b></h4>
</div>
</li>
<li class="timeline-inverted" ng-repeat-end>
<div class="timeline-badge" style="background-color:#f9f9f9!important;"><i class="fa fa-phone hg-blue" aria-hidden="true"></i></div>
<div class="card-block">
<h4 class="card-title"> {{t.FirstName}}'s reply was: <b ng-if="t.ReplyMessage !== null" class="stop">{{t.ReplyMessage}}</b></h4>
</div>
</li>
</ul>
My expectation is to display the list once but with alternate css classes (timeline and timeline-inverted).
I appreciate your help and insights in advance.