A module that extends ng-pluralize directive to support HTML which is a missing feature and a required functionality to some developers based on this open issue on AngularJs repository.
It has exactly the same API functionality, just change ng-pluralize to ng-pluralize-html.
API documentation can be found here.
Usage
Install
Bower
bower install ng-pluralize-html --save
npm
npm install ng-pluralize-html --save
yarn
yarn add ng-pluralize-html --save
Example
Click here to see it in action.
JS
// Declare the dependency modulevar sampleApp = angular; // Use it like ng-pluralizesampleApp;
HTML
Using ng-pluralize-html Person 1: Person 2: Number of People: <!-- Example with simple pluralization rules for en locale --> Without Offset: <!-- Example with offset --> With Offset(2):