Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
How to set template content in polymer

Trying to append component in the template but not working. How to append the component in the template using polymer.

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>';
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!