angular-filter icon indicating copy to clipboard operation
angular-filter copied to clipboard

GroupBy question

Open kabus202 opened this issue 9 years ago • 2 comments

Hi all,

I have a question about the groupBy function. I'm using this (see below) for the group by.

"(key, value) in items | filter:searchFilter | groupBy: 'name'"

Now everything works perfect, the {{key}} gives me the grouped name. But i need also the grouped key. So is it possible to do a multi group and get the seperated grouped keys? i.e. {{key.id}} {{key.name}} ??

Kind regards, Kab

kabus202 avatar May 04 '15 12:05 kabus202

Can you please provide some fiddle/jsbin example? Thx.

a8m avatar May 04 '15 13:05 a8m

Maybe this will help... Using groupby and filter in a nested tree

http://plnkr.co/edit/JLsVzi?p=preview

rafialikhan avatar Sep 01 '15 17:09 rafialikhan