I have an array of items that I'm repeating over using ng-repeat and am using group filter
this is my array
var items = [
{ product_id : 1, quantity : 2 }
{ product_id : 1, quantity : 3 }
{ product_id : 2, quantity : 2 }
{ product_id : 3, quantity : 4 }
{ product_id : 2, quantity : 8 }
];
I would like an ng-repeat that results in the following presentation
| product_id 1 | quantity 5 |
| product_id 2 | quantity 10 |
| product_id 3 | quantity 4 |
Any suggestions?