Before in Angular 1 when I wanted to do a grouping of data it was like this:
ng-repeat="(key, value) in me | groupBy: 'role_id'"
In my object me
had a list of users with a different role_id
field. Hence I wanted to do this:
# Admin
Diego
João
Maria
# User
Márcio
Alex
Daniella
Only with this command line could I cluster. But I can not do that in Angular 2 (TypeScript) using Ionic.
What command is similar to this one to use in Angular 2?
I'm using NgFor
, but I can not do pooling.