angularjs - How to display table with grouping -


I need to create a table that can be grouped with object properties. I am unable to use ngtables for this, so I hope it is a way of doing it with a filter or nested ng-duplication. "Company ID": "40", "Company Name": "Xerox", "Company Employee": {"_id": "544", "Company Employee Employee Name": "Taylor", "Company Employee Employee": "Bartlett", "Company employee employee": "Vermont"

The table needs to show a list of employee names and they need to be grouped by the state there.

You have to do it in any way other than writing your filter First you can use a gallery or underscore (not shown here) to do the group by your controller, or you can include this nifty filter library so that the wheel can not be restored and Your own filter should not be written.

Plunker:

The code for creating a group on the state is:

  & Lt; table ng-repeat = "status in customers | Group: 'CompanyEmployees.CompanyEmployeeState' '& gt; & Lt; TR & gt; & Lt; TD & gt; {{State [0] .companyEmployees.CompanyEmployeeState}} & lt; / TD & gt; & Lt; / TR & gt; & Lt; Tr ng-repeat = "customer in state" & gt; & Lt; TD & gt; {{Customer.CompanyEmployees.CompanyEmployeeFirstName}} & lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt;  

Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

c# - WPF Expander overlay used in ItemsControl -

class - Kivy: how to instantiate a dynamic classes in python -