Untitled
unknown
plain_text
3 years ago
505 B
7
Indexable
<!doctype HTML> <html> <head> <script type="module"> import {LitElement, css, html} from 'https://unpkg.com/lit-element/lit-element.js?module'; export class Test extends LitElement { styles = css` p { color: aliceblue; } `; render(){ return html`<p>Hello from my template.</p>`; } } customElements.define('my-test', Test); </script> </head> <body> <my-test></my-test> </body> </html>
Editor is loading...