Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 561 Bytes

SOC.md

File metadata and controls

37 lines (25 loc) · 561 Bytes

File Structure:

  • MyFeature
    • Component.ts
    • Style.ts
    • Template.ts

Code:

// Component.ts

import { LitElement, customElement } from "lit-element";

import style from "./Style";
import template from "./Template";

@customElement("myfeature-component")
export class MyFeature extends LitElement {
  public static styles = style;
  public render = template.bind(this);
}

// Style.ts

import { css } from "lit-element";

export default css``;

// Template.ts

import { html } from "lit-element";

export default function() {
  return html``;
}