*Hi* *i try here to view customers data on my view throw API i have "ID, Name, MyDate", but i need it viewed on table grouped by same month like:*
<https://lh3.googleusercontent.com/-5qUf6uDwlj0/VXIs638BChI/AAAAAAAABZk/W65G-uWVpp4/s1600/Untitled.png> *but i don't know how to set it works i try many times as:* rowspan="{{cus.MyDate.length+1}}" *but nothing - my html code is:* <div ng-app="jqanim" ng-controller="ttController"> <table class="table table-bordered"> <tr> <th>CustomerID</th> <th>CustomerName</th> <th>CustomerMonth</th> </tr> <tr ng:repeat="cust in customers"> <td> {{cust.ID}} </td> <td>{{cust.Name}}</td> <td rowspan="{{cus.MyDate.length+1}}"> @* here i need to use rowspan on month value on MyDate ?? *@ {{cust.MyDate | date: "MMMM"}} </td> </tr> </table> </div> *js code:* (function () { var app = angular.module('jqanim', []); app.controller('ttController', function ($scope, $http) { $http.get("/api/Test").success(function (data) { $scope.customers = data; }); }); })(); *api controller code:* private static List<Test> listOfOrders; public TestController() { if (listOfOrders == null) { listOfOrders = new List<Test> { new Test { ID = 1, Name = "Customer1" , MyDate = new DateTime(2015,01,01)}, new Test { ID = 2, Name = "Customer2" , MyDate = new DateTime(2015,01,01)}, new Test { ID = 3, Name = "Customer3" , MyDate = new DateTime(2015,02,05)}, new Test { ID = 4, Name = "Customer4" , MyDate = new DateTime(2015,01,05)}, new Test { ID = 5, Name = "Customer5" , MyDate = new DateTime(2015,02,05)}, new Test { ID = 6, Name = "Customer6" , MyDate = new DateTime(2015,02,05)}, new Test { ID = 7, Name = "Customer7" , MyDate = new DateTime(2015,02,05)}, new Test { ID = 8, Name = "Customer8" , MyDate = new DateTime(2015,03,05)}, new Test { ID = 9, Name = "Customer9" , MyDate = new DateTime(2015,04,05)} }; } } public IEnumerable<Test> Get() { return listOfOrders.OrderBy(i => i.MyDate); } *so please how can i make it works ?* -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
