I have the following array
:
$scope.array = [
{'fecha': "2017-01-01",
"texto": "luis"},
{'fecha': "2017-01-01",
"texto": "jorge"},
{'fecha': "2017-01-01",
"texto": "daniel"},
{'fecha': "2017-01-02",
"texto": "pedro"},
{'fecha': "2017-01-03",
"texto": "crhis"},
];
which in my view html
I show it in the following way:
<ul ng-repeat="i in array">
<li>{{i.fecha}} {{i.texto}}</li>
</ul>
but the result of this is:
2017-01-01 luis
2017-01-01 jorge
2017-01-01 daniel
2017-01-02 pedro
2017-01-03 crhis
My question is how can I filter by date, meaning that the result is as follows:
2017-01-01 -----> luis jorge daniel
2017-01-02 -----> pedro
2017-01-03 -----> crhis
itself what I want to know is how to do the filtering by date and that the date is displayed only once together with your data.