As a matter of facts, this will work with display filter(orderBy
, limitTo
)
item in list = ( item_array|filter:some_str) | orderBy: pref | limitTo: nItemToDisplay
if you need to display 5 items at a time, you still can use list.length. Usefull for pagination or in datatable.