I'm working on a blog that displays every post made on a single day in a single div. It's broken down by Day 1, Day 2, etc. Each post is pulled in by an API and each has a posted object, like so:
posted : "January 27, 2016"
Currently I'm looking through the entire API and displaying them on the page using ng-repeat. I know I can use the date filter method to order them (although the API already has them in the correct order), but how would I make it so it displays a varying number of posts in each day based on their posted date?
<div ng-repeat="article in article.items">
<div class="col-sm-12 day-block">
{{ article.title }}
</div>
</div>
Ideally I want it to loop through the items, order them by their date, and then display all of the posts that match that date in one block, and then all posts that match another in a second.
Not quite sure how to approach this, any suggestions would be appreciated.