javascript - Debug a New Polymer Element Page -


we have

/ bower_components index_demo.html mycomponent.html

mycomponent.html uses e.g. paper-button, gets imported

<link rel="import" href="../paper-button/paper-button.html">

so when mycomponent installed via bower lands in bower_components , works.

now best practice debug element locally?

index_demo.html should import mycomponent.html , bower_components/paper-fab/paper-fab.html.

now mycomponent.html doesn't work, because

../paper-button/paper-button.html not found (as lies in bower_components/paper-button)

for manually add required mycomponent polymer elements index_demo.html, it's unclean solution.

platform: win

as seems comment helpful, here answer

there's guide in polymer website on recommended way of creating new elements polymer, in can find download link seed-element template has structure allows develop, debug, test, deploy element github pages, , put bower quite easily.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -