After ng-repeat is filtered by a certain condition, how can we get the data length after being filtered by this condition? ? ?
Rough method: {{(list | filter : f).length}},最好不要这样用,最好在controller先filterYeah
{{(list | filter : f).length}}
controller
filter
http://stackoverflow.com/questions/21379426/angular-get-length-of-filtered-ng-repeat
Rough method:
{{(list | filter : f).length}}
,最好不要这样用,最好在controller
先filter
Yeahhttp://stackoverflow.com/questions/21379426/angular-get-length-of-filtered-ng-repeat