static get template() {
return html`
<p>This content is from ChildClass.</p>
<p>${super.template}</p>
<p>Hello again from ChildClass.</p>
<p style='color:red'>[[partHtml]] <==== this should be 'hello'</p>
`;
}
get partHtml()
{
return "<span>hello</span>";
}
I want partHtml
to be injected into a template like normal HTML.
I know unsafe HTML in lit-element can do that, but lit-element just can't use super.render()
things, it is not convenient like polymer-element.