Am new to angular JS, 
I am pushing elements in an array and then want to display in the html using ng-repeat.

```
$scope.groupedMedia = [];

//Adding elements through a for loop.

$scope.groupedMedia[year].push(response.resources[i]);

console.log($scope.groupedMedia);

//The above console displays the following,

//[2014_January: Array[5], 2013_December: Array[95]]

```

So in my HTML,

```
<div ng-repeat="group in groupedMedia">
<div ng-repeat="file in group">
<p>{{file.lastModified}}</p>
</div></div>

```

I observe that the groupedMedia array in the html is empty and hence not displaying any data.
I also need to display the items in the array in the same order as i push it.
Any tips to solve this will be very helpful.