Josep M Sobrepere

Develop | Share | Re-Develop

Creating a ‘groupBy’ $filter in Angular

A few weeks ago I decided that I wanted to develop a ‘groupBy’ $filter. I knew that these kind of filters are tricky because they tend to generate infinite loops in the $diggest cycle. However, I wanted to fully understand why these kinds of $filters run into this problem. I also wanted to figure out the best solution to overcome this issue.

In this post I will explain all the steps that I took to develop this $filter, the problems that I encountered, what I learned, along with the final implementation of the $filter.

Read on →