Is there a way to access the iterator in the count attribute when using ng-pluralize within a loop?
<option ng-repeat="i in [1,2,3,4,5]" value="{{ i }}">
{{ i }} star<ng-pluralize count="i" when="{'1': '', 'other': 's'}"></ng-pluralize>
</option>
The current output is:
- 1 star
- 2 star
- 3 star
- ...
But what I want is:
- 1 star
- 2 stars
- 3 stars
- ...