I have the following code:
<div ng-repeat="(key, value) in history | groupBy:'date'">
<div>{{key}}</div>
<div ng-repeat="item in value">
{{item}}
</div>
</div>
I want to show my history in this format:
2015-10-10
item 1
item 2
item 3
2015-10-11
item 4
item 5
2015-10-12
item 6
item 7
This code works correctly, but the date
property is a timestamp. Each item differs by hours and seconds. It's important that the items are grouped by day without the time.