github / relative-time-element

Web component extensions to the standard <time> element.

Home Page:https://github.github.io/relative-time-element/examples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tell how to properly import this into other webcomponents

ensonic opened this issue · comments

Somewhat related to #81. Right now polymer lint will complain

 warning [undefined-elements] - The element relative-time is not defined

If I just have this at the end of modules:

 ...
 <script src="../bower_components/time-elements/time-elements.js"></script>
</dom-module>

Looks like this is because the linter doesn't support the deprecated v0 API: Polymer/polymer-linter#63
However, this PR to switch to v1 seems stalled: #67

v1.0.0 is out now with Custom Elements v1 API. A polyfill example can be found here.