ng-pluralize-filter

Angular filter that transforms english nouns into its plural form


Project maintained by mikaelharsjo Hosted on GitHub Pages — Theme by mattgraham

ngPluralizeFilter

Travis

Angular filter that transforms english nouns into its plural form and nothing else. Inspired by inflection-js and the original Inflector class in Ruby on Rails ActiveSupport.

Demo

Type (almost) any noun and it will be transformed into plural.

Plural: {{noun | pluralize}}

Other examples

vogon vogons
person people
ox oxen
cherry cherries

Installation

bower install ng-pluralize-filter --save

Example usage

<html ng-app='app'>
<head>
  <script src="bower_components/angular/angular.js"></script>
  <script src="bower_components/ng-pluralize-filter/ng-pluralize-filter.js"></script>
  <script>
    angular.module('app', ['ngPluralizeFilter']);
  </script>
</head>
<body>{{'cat' | pluralize}}</body>
</html>

Contributing

npm install
bower install
gulp