#95 filter-by in template

There are many ways to filter in ember, one way is using computed helper as in tip: #6 Filter Arrays.  That requires creating a computed property.  There is another way to do it directly in your template without the extra code.

I wrote a tip (#38 Pipe multiple actions) about the awesome ember-composoable-helpers add-on.  Using that same add-on, here is how to filter directly in your template:

You can omit the ‘true’ and it will test for thruthiness.  You can learn more on the addon repo.

Published by

Emad Ibrahim

Author of asp .net MVC & TDD, entrepreneur, passionate technologist, programmer and productivity nut. more at http://t.co/oSJXPvzu

  • Joe Hany

    This is very useful. Thanks