angular-filter
angular-filter copied to clipboard
GroupBy question
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
Can you please provide some fiddle/jsbin example? Thx.
Maybe this will help... Using groupby and filter in a nested tree
http://plnkr.co/edit/JLsVzi?p=preview