What you probably want here is to alias the results of the repeat. From the Angular Documentation:
variable in expression as alias_expression
– You can also provide an optional alias expression which will then store the intermediate results of the repeater after the filters have been applied. Typically this is used to render a special message when a filter is active on the repeater, but the filtered result set is empty.
For example: item in items | filter:x as results
will store the fragment of the repeated items as results, but only after the items have been processed through the filter.
Please note that as [variable name]
is not an operator but rather a part of ngRepeat micro-syntax so it can be used only at the end (and not as operator, inside an expression).
For example: item in items | filter : x | orderBy : order | limitTo : limit as results
.
So in your case, you can use:
<div ng-repeat="einschItem in einschaetzungen.alldata |
filter: { savedatum: lolatage[tagarrayindex].tagestring } |
orderBy : '-savetimestamp'
as filteredItems">
{{filteredItems.length}}
Note that this is functionally the same as the syntax provided in the other answer to the question; This is just an alternative provided by the ngRepeat micro-syntax.