Skip to content

capptions/iron-timeago

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<iron-timeago> is a Polymer 1.0 element that shows a date/time as 'some time ago' using https://date-fns.org

Demo

https://safetychanger.github.io/iron-timeago/

Install

Install the component using Bower:

$ bower install iron-timeago --save

Usage

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.

Discussing

If you have any questions, you can find me on the Polymer Slack Channel, or just raise an Issue.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License © Ruben Stolk

Throughput Graph

About

Polymer 1.0 element that shows a date/time as 'some time ago' using https://date-fns.org

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages