Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
AngularJSのフィルタ予測によって返されるアイテムの長さ/数を取得するにはどうすればよいですか?
Pawel Kozlowski のおかげで、AngularJS Google Group で素晴らしい回答を見つけることができました。
ng-repeat="item in filtered = (items | filter:filterExpr)"
filteredその場でリストを作成するfiltered.lengthと、現在のスコープ内の他の場所を使用してカウントを表示できます。
filtered
filtered.length