Determines the number of elements in an array. Optionally it will count only those elements
for which the condition
evaluets to true
.
Note: this function is used to augment the Array type in angular expressions. See
angular.Array
for more info.
angular.Array.count(array, condition);
array – {Array} –
The array to count elements in.condition(optional) – {(function()|string)} –
A function to be evaluated or angular expression to be
compiled and evaluated. The element that is currently being iterated over, is exposed to
the condition
as this
.number
– Number of elements in the array (for which the condition evaluates to true).