ember-ordinal-indicators
v0.1.0
Published
An addon for obtaining ordinal indicator suffixes
Downloads
2
Maintainers
Readme
ember-ordinal-indicators
Helper for obtaining the ordinal indicator of a number.
It one of the following suffixes: st
, nd
, rd
, or th
.
Installation
npm install ember-ordinal-indicators --save-dev
with ember-cli:
ember install ember-ordinal-indicators
Usage
{{ordinal-for <number>}}
Examples:
{{ordinal-for 1}} {{! => st}}
{{ordinal-for 2}} {{! => nd}}
{{ordinal-for 3}} {{! => rd}}
Development
git clone https://github.com/rsocci/ember-ordinal-indicators.git
npm install
Running Tests
ember test
ember test --server
For more information on using ember-cli, visit http://ember-cli.com/.