I have a series of objects with properties, where some of them have the same value in a property called "region". I would like to group these objects by region property (i.e. if they are in the same region, then group them together), and display however many regions there are from these objects in different tables. I cannot figure out how to do this in ng-repeat. Here is an example of the list of objects:
[{"name": 000, "region": cus, "weight": 1}, {"name": 001, "region": cus, "weight": 2}, {"name": 003, "region": wus, "weight": 2}]
The goal is to do an ng-repeat on a table tag so that the tables are produced by regions "cus" and "wus," two tables with 000 and 001 in cus table and 002 in wus table.
For reasons which I will not explain here, I would prefer to not use another library for AngularJS to achieve this desired result. Many of you suggested a groupBy property that can be added but is there a way to do this with just the native Angular code?
Thanks much for the help.