Angular Ordinal Number Filter
{{numericalValue | ordinal}}
Converts e.g 1 -> 1st, 2 -> 2nd, 3 -> 3rd, 4 -> 4th.
Installation
Via npm (Recommended)
npm install --save angular-ordinal
This filter can also be installed through Bower:
bower install angularjs-ordinal-filter --save
Load the script:
Include the module as a dependency in your app:
angular;
Usage
In your template:
{{numericalValue | ordinal}}
In your JS:
angular;
License
Licensed under the MIT License.