I'm facing a bit of a challenge with Angular since I'm still new to it. My data looks like this:
$scope.datas =[
{name:'haha',datetime:'2015-06-06 09:24:34'},
{name:'taha',datetime:'2015-07-06 19:10:45'},
{name:'gaga',datetime:'2015-06-06 15:36:14'},
{name:'lala',datetime:'2015-07-06 04:43:24'}
]
Now, I want to use ng-repeat to display the data in a table format as follows:
<table>
<tr><td colspan="2">2015-06-06</td></tr>
<tr><td>09:24:34</td><td>haha</td></tr>
<tr><td>15:36:14</td><td>gaga</td></tr>
<tr><td colspan="2">2015-07-06</td></tr>
<tr><td>19:10:45</td><td>taha</td></tr>
<tr><td>04:43:24</td><td>lala</td></tr>
</table>
Any suggestions on how I can achieve this?