How can I add Light DOM to element without the container element? I am trying to build a custom element that contains iron-pages
and would like to pass its content as Light DOM. But, the rendered DOM contains the wrapping causing iron-pages
to not work. Is there a way to achieve this?
Here’s what I am trying to do. https://plnkr.co/edit/Twa1D4cpCy5HNCSpNxqu?p=preview
<dom-module name="foo-pages">
<template>
<div id="sections">
<content select="[sections]"></content>
</div>
<iron-pages id="pages" selected="0">
<content select="[pages]"></content>
</iron-pages>
</template>
</dom-module>
<!-- usage -->
<foo-pages>
<div sections>
<paper-button id="btn1" raised>view 2</paper-button>
<paper-button id="btn2" raised>view 3</paper-button>
</div>
<div pages>
<div for="btn1">one</div>
<div for="btn2">two</div>
</div>
</foo-pages>