Getting the number of results from a filtered, ordered ng-repeat
The best way to return the number of results from a filtered ngRepeat (ordered or not) is by assigning an alias to it. Let’s say we have a list of books. We use ngRepeat to output the list like so: <ul> <li ng-repeat=”book in books”> <p>{{book.title}}</p> </li> </ul> At this point, returning the […]