-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discuss: idiomatic way of displaying size of a filtered collection #239
Comments
I've tried |
I also encountered this issue, and I have to admit that even the work around are not that easy to implement... We have to provide something. |
I am surprised the {let} option doesn't work - this is a bug |
I just tried the following in the "list ordering" sample of the playground and it works:
So are you sure the |
Hmm, it might have to do with the place where I've put In any case what I love to be able to avoid the let statement - supporting |
@b-laporte ok, here is what happens with
|
Consider a typical example of an expression where we want to have a data table that is filtered, paginated and sorted:
Now, we would like to display the number of filtered elements. In the TODO MVC example we can see one approach:
hashspace/docs/todomvc/todoctrl.js
Line 47 in a223a0b
{(ctrl.tableItems | filter:ctrl.search).length}
{foreach itemIdx, item in (filtered = ctrl.tableItems | filter:ctrl.search) | sorter.sort | limit:limitBoundaries.from:limitBoundaries.count}
and then {filtered.length}The text was updated successfully, but these errors were encountered: