خرید بک لینک

Vote count: 0

I am trying to create a structure like the image bellow with angular ng-repeat these data inside Reports array. I know I must use some kind of iteration to achieve it but I am very lost.

enter image description here

$scope.Reports = 
 [
 { Id: 1, Name: 'Report One', Year: 2016, Month: 05 },
 { Id: 2, Name: 'Report Core', Year: 2016, Month: 05 },
 { Id: 3, Name: 'Report Alpha', Year: 2016, Month: 03 },
 { Id: 4, Name: 'Report Moon', Year: 2015, Month: 05 },
 { Id: 5, Name: 'Report Sky', Year: 2015, Month: 02 }
 ];

I am not sure if I will need to create another arrays to store some data. Something like this

$scope.years = [];
$scope.months = [];

Any help will be kindly appreciate it. Thanks

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 12 فروردين 1395 ساعت: 13:01

صفحه بندی