<iron-timeago>
is a Polymer 1.0 element that shows a date/time as 'some time ago' using https://date-fns.org
https://safetychanger.github.io/iron-timeago/
Install the component using Bower:
$ bower install iron-timeago --save
Import Custom Element:
<link rel="import" href="bower_components/iron-timeago/iron-timeago.html">
And then use it:
<iron-timeago datetime="2017-01-01T00:00:00.000Z"></iron-timeago>
See the Documentation for more options.
If you have any questions, you can find me on the Polymer Slack Channel, or just raise an Issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT License © Ruben Stolk