Time Ago in Words
This addon has been deprecated.
Please see https://github.com/johnotander/ember-cli-dates for the current version.
An ember-cli addon for computing the time ago in words with moment.js.
Installation
First, you must install moment with bower:
$ bower install --save moment
Add the following import to your Brocfile.js:
app;
Then, install ember-time-ago:
$ npm install --save ember-time-ago
Usage
In your view:
{{time-ago-in-words this.createdAt}}
License
MIT
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by John Otander.