Here is an example of an array:
var date = {
'2015': [{
'month': 'Januar',
'day': 31
}, {
'month': 'Februar',
'day': 28
}]
};
I am trying to use ng-repeat to iterate through the days:
Desired Output:
<div ng-repeat="date in date.2015">
{{date.month}}
<!-- Displays 12 month names -->
<div ng-repeat="day in date['2015'+$index]['day']" >
{{day}}
<!-- displays the day count based on the month-->
<!-- The day count should start from 0 and increment up to the specified number-->
</div>
</div>
I hope this clarifies things.
The issue with
ng-repeat="day in date.2015+{{$index}}+'.day'"
has been fixed.