Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

AngularJS Ordinal Number Filter

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 component.json
Octocat-spinner-32 ordinal.js
README.md

AngularJS Ordinal Number Filter

{{numericalValue | ordinal}}

Converts e.g 1 -> 1st, 2 -> 2nd, 3 -> 3rd, 4 -> 4th.

Hat tip

The snippet to create an ordinal number was found online here

Installation

This filter can be installed through Bower:

bower install angularjs-ordinal-filter

Hopefully someone finds this useful!

Something went wrong with that request. Please try again.