Intentando agregar un componente en la plantilla pero no funciona. Cómo agregar el componente en la plantilla usando polímero.
import { PowerSector } from '../components/powersector'; public data = []; public condition: boolean; protected async show(comp){ let template = document.getElementById('my-content'); this.condition = true; template.appendChild(comp); } static get template() { return html' <button click="show("<power-sector val="[[data]]"></power-sector>");"></button> <template is="dom-if" if="[[condition]]" id="my-content"> </template>'; }