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

Lost in an empty sea

pedro2555 opened this issue · comments

How does one use this?

I'm using Polymer 2 (and I will upgrade, in due time). And bower (npm, another day, when its quicker).

All attempts I've done, I just cannot import any component this projects claims to add.

How to install this?

Does bower install <git_repo> do the thing? Do I need to install using npm, really?

How to import

Installing with bower, adds a bunch of .js files. Where, how, and which files should I import?

Which file to import? Link or Script tag?

Does bower install <git_repo> do the thing?

No. We don't publish to bower.

Do I need to install using npm, really?

Yes. You can find the installation instructions in the README.

Ok. Thanks for the clarification. Still I'm unable to add this to my project. I would argue the README could be clearer in that regard. (And I did read the file before posting the issue, hence my question about npm only).

The web components don't seem to be loaded properly, I always get the plain text content inserted into the element.

If you can clarify my second part, I will send an update to the README. no prob.