I am showing subsets of a list if a checkbox is checked. I would like to replace the X next to the checkbox with the count of the list matching the selection criteria. I hav
Assuming your list of people is in data variable and you filter people using query model, the following code will work for you:
{{(data|filter:query).length}}
{{data.length}}
summary
{{data.length}}
- prints total number of people
{{(data|filter:query).length}}
- prints filtered number of people