How to format the number passed to ng: the pluralize directive via the 'count' attribute?
Consider the following code:
<ng:pluralize count="5000000" when="{'other': '{} things'}"></pluralize>
output:
5000000 things
How can I change this to output:
5,000,000 things // in US locale 5 000 000 things // in Czech locale
I tried using the filter number, but I think I donβt know where to put it. It does not work on the object passed to the when attribute. I tried:
... when="{'many': '{{{}|number}} things'}" ... when="{'many': '{}|number things'}" ... when="{'many': '{|number} things'}"
angularjs
redhead
source share