Marc Hughes


Home
Blog
Twitter
LinkedIn
GitHub
about
I am a developer from a bit west of Boston.

Filtering lists in your angular dart templates - take 2

27 May 2014

A few posts ago, I wrote about how to use the |filter method to filter an ng-repeat list. Unfortunately, that has one major problem. If an element of the list changes so the filter would no longer include it, the display is not updated.

Therefore, I'm not using that method anymore.

Now, in my custom components, I create a new list of filtered items and manually keep it updated, and then ng-repeat on that instead of the original source list.