Closed utrumo closed 5 years ago
How can i configure this to work with lit-element?
Code example:
import { LitElement, html, css, svg } from 'lit-element'; class ExampleComponent extends LitElement { static get styles() { return css` p { color: green; } `; } render() { return html` <p>This is example of html markup and svg</p> ${svg` <svg height="100" width="100"> <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" /> </svg> `} `; } } window.customElements.define('example-component', ExampleComponent);
Documentation with more examples: https://lit-element.polymer-project.org/guide/templates
You can't, you need a language server that extend tsserver
How can i configure this to work with lit-element?
Code example:
Documentation with more examples: https://lit-element.polymer-project.org/guide/templates