My goal is to limit no of records under each category which are grouped by category for groupby filter i have refered to AngularJS Group By Directive without External Dependencies.
Now i want to limit no of record to be displayed under each category
Output will look like this : There are total 9 records 4 under group 1 and 5 under group 2 but i want to display 2 records under each category.
Group 1
abc
def
Group 2
ghi
jkl