()
| 13 | } |
| 14 | |
| 15 | connectedCallback() { |
| 16 | const shadow = this.attachShadow({ mode: "open" }); |
| 17 | shadow.appendChild(StringTest.template.content.cloneNode(true)); |
| 18 | this.setString(); |
| 19 | } |
| 20 | |
| 21 | setString() { |
| 22 | this.shadowRoot.querySelector(".string").innerText = this.string; |