ember-time-ago

1.0.2 • Public • Published

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.import('vendor/moment/moment.js');

Then, install ember-time-ago:

$ npm install --save ember-time-ago

Usage

In your view:

{{time-ago-in-words this.createdAt}}

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander.

Readme

Keywords

Package Sidebar

Install

npm i ember-time-ago

Weekly Downloads

6

Version

1.0.2

License

MIT

Last publish

Collaborators

  • johno