AngularJS Group By Directive without External Dependencies

This is a modification of Darryl’s solution above, that allows multiple group by parameters. In addition it makes use of $parse to allow the use of nested properties as group by parameters. Example using multiple, nested parameters http://jsfiddle.net/4Dpzj/6/ HTML <h1>Multiple Grouping Parameters</h1> <div ng-repeat=”item in MyList | orderBy:’groupfield’ | groupBy:[‘groupfield’, ‘deep.category’]”> <h2 ng-show=”item.group_by_CHANGED”>{{item.groupfield}} {{item.deep.category}}</h2> <ul> … Read more