Questions tagged [angularjs-ng-pluralize]

ngPluralize is directive in module ng in AngularJS

ngPluralize is a directive that displays messages according to en-US localization rules. These rules are bundled with angular.js, but can be overridden (see Angular i18n dev guide). You configure ngPluralize directive by specifying the mappings between plural categories and the strings to be displayed.

5 questions
5
votes
2 answers

AngularJS pluralization with angular-translate and ng-pluralize

I have this piece of code code but I can't…
user3437727
1
vote
1 answer

Is there a way in Angular i18n/ngPluralize to retrieve the plural category of a number?

Given an expression or variable that returns a number, is there a way to get the plural category of that number for the current locale? Something like // people.length == 1 ngPluralize.getCategory(people.length) // returns 'one'
1
vote
1 answer

ng-pluralize hide element when value is 0 (zero)

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…
BluePrint
  • 1,926
  • 4
  • 28
  • 49
1
vote
1 answer

ng-pluralize with yml html translation

I'm trying to use ng-pluralize to conditionally display HTML based on yml translations. Unfortunately, the HTML is ignored by ng-pluralize and displayed as a string literal with the count interpolated. Is it possible to do what I'm trying…
gards
  • 555
  • 1
  • 6
  • 18
0
votes
1 answer

AngularJs ng-pluralize into component

AngularJs ng-pluralize into component didn't updated on model changes. ng-pluralize without component works fine On model update pluralize into index.html updated properly, and plural into component didn't update, although varaible into component…