I would like to user Angulars ng-pluralize
to hide/show/change an element in such way that of the value is 0, the element should be hidden (as in ng-hide="value == 0"
or ng-if="value != 0"
).
When the value is 1, the element should have one text, and if it's more than 1 it should have one text. The value can never be negative. That's why I want to use ng-pluralize
.
My question is; can you use ng-pluralize
to do this without having to put the element inside another element just for this?