Component only shown if custom elements are found

This commit is contained in:
Julien Lengrand-Lambert
2020-09-02 16:33:28 +02:00
parent 9d8ca9144a
commit 9fe33b2e79

View File

@@ -45,13 +45,13 @@ class CustomElementsLocator extends LitElement {
</a>
</div>
<h1>Custom Elements Locator</h1>
<share-element></share-element>
<div>
<input placeholder="Filter custom elements..." @input=${this.handleChange} type="text"/>
</div>
${this.loaded
? this.customElements.length > 0
? html`
<share-element></share-element>
<h2>I found custom elements on </h2>
<ul>
${this.customElements