Angular filter that transforms english nouns into its plural form
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.
Type (almost) any noun and it will be transformed into plural.
Plural: {{noun | pluralize}}vogon | → | vogons |
person | → | people |
ox | → | oxen |
cherry | → | cherries |
bower install ng-pluralize-filter --save
<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>
npm install
bower install
gulp