How to display length of filtered ng-repeat data

前端 未结 8 1158
花落未央
花落未央 2020-11-22 08:11

I have a data array which contains many objects (JSON format). The following can be assumed as the contents of this array:

var data = [
  {
    \"name\": \"         


        
8条回答
  •  悲&欢浪女
    2020-11-22 08:28

    It is also useful to note that you can store multiple levels of results by grouping filters

    all items: {{items.length}}
    filtered items: {{filteredItems.length}}
    limited and filtered items: {{limitedAndFilteredItems.length}}
    
    ...

    here's a demo fiddle

提交回复
热议问题