Search code examples
polymerweb-component

importing polymer.html in sub-elements


I'm getting my feet wet with Polymer. I am wanting to create a stand-alone app that can be injected into multiple implementations. Like this:

Inside my-app element, I may also have many sub-elements. It's my understanding that every element needs to import polymer.html. Should all of the sub-elements rely upon the parent (root) element to import polymer.html?

Thanks for your help.


Solution

  • Write all imports out for every element, so they are standalone. During vulcanize, unnecessary imports are ignored. So it does not matter how many polymer imports you have.