ng-repeat被某個條件過濾之後,怎麼能得到被這個條件過濾之後的資料長度? ? ?
粗暴的方法:{{(list | filter : f).length}},最好不要这样用,最好在controller先filter了
{{(list | filter : f).length}}
controller
filter
http://stackoverflow.com/questions/21379426/angular-get-length-of-filtered-ng-repeat
粗暴的方法:
{{(list | filter : f).length}}
,最好不要这样用,最好在controller
先filter
了http://stackoverflow.com/questions/21379426/angular-get-length-of-filtered-ng-repeat