We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, How can I get a reference to the length of the filtered array, into a scope variable for use elsewhere?
The text was updated successfully, but these errors were encountered:
I guess you could try like this:
<th ng-repeat="user in (filteredUsers = users | filterBy: ['id']: 1)"> {{ user.id }} : {{ user.first_name }} {{ user.last_name }} </th> {{ filteredUsers.length }}
Sorry, something went wrong.
You can use the alias expression too: https://stackoverflow.com/a/19517533
<div ng-repeat="person in data | filter:query as filtered"> </div>
No branches or pull requests
Hello, How can I get a reference to the length of the filtered array, into a scope variable for use elsewhere?
The text was updated successfully, but these errors were encountered: